Ejemplo n.º 1
0
        public async Task <WebCallResult <HitBtcCandlesResponse> > GetCandlesAsync(HitBtcCandlesFilterRequest filter, CancellationToken ct = default, params string[] symbols)
        {
            var parameters = filter.AsDictionary();

            return(await SendRequest <HitBtcCandlesResponse>(GetUrl(CandlesUrl), HttpMethod.Get, ct, parameters, false));
        }
Ejemplo n.º 2
0
        public async Task <WebCallResult <IEnumerable <HitBtcCandle> > > GetCandlesForSymbolAsync(string symbol, HitBtcCandlesFilterRequest filter, CancellationToken ct = default)
        {
            var parameters = filter.AsDictionary();

            return(await SendRequest <IEnumerable <HitBtcCandle> >(GetUrl(FillPathParameter(CandlesWithSymbolUrl, symbol)), HttpMethod.Get, ct, parameters, false));
        }