rest v1 spot & futures update

- add plan order symbol canceling
- fix candles data params (spot & futures)
- fix futures filter data (data in api-doc dither from real request!
This commit is contained in:
t0chk
2023-11-25 09:00:24 +03:00
parent 3b4b7c98cd
commit d6718c4af5
6 changed files with 80 additions and 38 deletions

View File

@@ -21,6 +21,7 @@ import {
GetHistoricTradesParams,
VIPFeeRate,
SpotKlineInterval,
SpotCandleData,
} from './types';
import { REST_CLIENT_TYPE_ENUM } from './util';
import BaseRestClient from './util/BaseRestClient';
@@ -111,12 +112,16 @@ export class SpotClient extends BaseRestClient {
getCandles(
symbol: string,
period: SpotKlineInterval,
pagination?: Pagination,
): Promise<APIResponse<any>> {
limit?: string,
after?: string,
before?: string,
): Promise<APIResponse<SpotCandleData[]>> {
return this.get('/api/spot/v1/market/candles', {
symbol,
period,
...pagination,
limit,
after,
before
});
}