diff --git a/src/futures-client.ts b/src/futures-client.ts index 0fae4b7..daa4ffe 100644 --- a/src/futures-client.ts +++ b/src/futures-client.ts @@ -316,6 +316,25 @@ export class FuturesClient extends BaseRestClient { }); } + /** Get All historic positions, only supports Query within 3 monthso */ + getHistoryPositions( + startTime: string, + endTime: string, + productType?: FuturesProductType, + symbol?: string, + pageSize?: number, + lastEndId?: string, + ): Promise> { + return this.getPrivate('/api/mix/v1/position/history-position', { + startTime, + endTime, + productType, + symbol, + pageSize, + lastEndId, + }); + } + /** Get Account Bill */ getAccountBill(params: FuturesAccountBillRequest): Promise> { return this.getPrivate('/api/mix/v1/account/accountBill', params);