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)); }
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)); }