revert to pagination and add js-doc to futures
This commit is contained in:
@@ -112,16 +112,12 @@ export class SpotClient extends BaseRestClient {
|
|||||||
getCandles(
|
getCandles(
|
||||||
symbol: string,
|
symbol: string,
|
||||||
period: SpotKlineInterval,
|
period: SpotKlineInterval,
|
||||||
limit?: string,
|
pagination?: Pagination,
|
||||||
after?: string,
|
|
||||||
before?: string,
|
|
||||||
): Promise<APIResponse<SpotCandleData[]>> {
|
): Promise<APIResponse<SpotCandleData[]>> {
|
||||||
return this.get('/api/spot/v1/market/candles', {
|
return this.get('/api/spot/v1/market/candles', {
|
||||||
symbol,
|
symbol,
|
||||||
period,
|
period,
|
||||||
limit,
|
...pagination,
|
||||||
after,
|
|
||||||
before
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -216,4 +216,14 @@ export interface HistoricPlanOrderTPSLRequest {
|
|||||||
isPlan?: string;
|
isPlan?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {string[6]} FuturesCandleData
|
||||||
|
* @property {Array[0]} Timestamp in milliseconds
|
||||||
|
* @property {Array[1]} Opening price
|
||||||
|
* @property {Array[2]} Highest price
|
||||||
|
* @property {Array[3]} Lowest price
|
||||||
|
* @property {Array[4]} Closing price - Value of the latest candle stick might change
|
||||||
|
* @property {Array[5]} Base currency trading volume
|
||||||
|
* @property {Array[6]} Quote currency trading volume
|
||||||
|
*/
|
||||||
export type FuturesCandleData = string[6];
|
export type FuturesCandleData = string[6];
|
||||||
Reference in New Issue
Block a user