revert to pagination and add js-doc to futures

This commit is contained in:
t0chk
2023-12-02 10:45:56 +03:00
parent 025498a5e4
commit 3e91b99b68
2 changed files with 12 additions and 6 deletions

View File

@@ -112,16 +112,12 @@ export class SpotClient extends BaseRestClient {
getCandles(
symbol: string,
period: SpotKlineInterval,
limit?: string,
after?: string,
before?: string,
pagination?: Pagination,
): Promise<APIResponse<SpotCandleData[]>> {
return this.get('/api/spot/v1/market/candles', {
symbol,
period,
limit,
after,
before
...pagination,
});
}