public override async Task <int> GetAllPrice()
        {
            var price = await GetPrice();

            if (Math.Abs(price - (-1)) < 0.1)
            {
                return(0);
            }

            var nkd     = FinanceHelpers.GetValueOfColumnSecurities("ACCRUEDINT", Data).GetDouble();
            var nominal = FinanceHelpers.GetValueOfColumnSecurities("FACEVALUE", Data).GetDouble();

            return(FinanceHelpers.GetPriceInt((price / 100 * nominal + nkd) * Amount));
        }
        public async Task <string> GetName()
        {
            var data = await GetData();

            var result = FinanceHelpers.GetValueOfColumnSecurities("SHORTNAME", data);

            try
            {
                return(result.GetString());
            }
            catch (Exception)
            {
                return("");
            }
        }
        public async Task <double> GetPrice()
        {
            var data = await GetData();

            var jsonPrice    = FinanceHelpers.GetValueOfColumnMarketdata("LAST", data);
            var jsonDecimals = FinanceHelpers.GetValueOfColumnSecurities("DECIMALS", data);

            if (jsonPrice.ValueKind == JsonValueKind.Undefined)
            {
                return(-1);
            }

            var price    = jsonPrice.GetDouble();
            var decimals = jsonDecimals.GetInt32();

            return(Math.Round(price, decimals));
        }
        public void GetValueOfColumnSecurities()
        {
            var shortName = FinanceHelpers.GetValueOfColumnSecurities("SHORTNAME", _data);

            Assert.AreEqual("Yandex clA", shortName.GetString());
        }