public Task <CandlesResponse> GetCandles(string figi, DateTime from, DateTime to, CandleInterval interval,
                                                 CancellationToken cancellationToken = default)
        {
            var query = new Dictionary <string, string>
            {
                { "figi", figi },
                { "from", from.ToString("yyyy-MM-ddTHH:mm:ss.ffffffK") },
                { "to", to.ToString("yyyy-MM-ddTHH:mm:ss.ffffffK") },
                { "interval", interval.GetEnumMemberAttributeValue() }
            };

            return(_http.Get <CandlesResponse>($"market/candles",
                                               query,
                                               cancellationToken: cancellationToken));
        }
        public Task <CandlesResponse> GetCandles(string figi, DateTime from, DateTime to, CandleInterval interval,
                                                 CancellationToken cancellationToken = default)
        {
            var fromEncoded = HttpUtility.UrlEncode(from.ToString("yyyy-MM-ddTHH:mm:ss.ffffffK"));
            var toEncoded   = HttpUtility.UrlEncode(to.ToString("yyyy-MM-ddTHH:mm:ss.ffffffK"));

            return(_rest.Get <CandlesResponse>(
                       $"market/candles?figi={figi}&from={fromEncoded}&to={toEncoded}&interval={interval.GetEnumMemberAttributeValue()}",
                       cancellationToken));
        }