Added getHistoryPositions() to the Bitget futures client

This commit is contained in:
TYRANTHOSAURUS
2023-09-01 23:47:51 +02:00
parent b89bc12150
commit afbaa22cfb

View File

@@ -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<APIResponse<FuturesPosition[]>> {
return this.getPrivate('/api/mix/v1/position/history-position', {
startTime,
endTime,
productType,
symbol,
pageSize,
lastEndId,
});
}
/** Get Account Bill */
getAccountBill(params: FuturesAccountBillRequest): Promise<APIResponse<any>> {
return this.getPrivate('/api/mix/v1/account/accountBill', params);