feat(#187, v3.1.2): add support for new orderCategory param for spotv3

This commit is contained in:
tiagosiebler
2022-10-23 10:59:37 +01:00
parent fce9bde6e5
commit a7d4f630b3
6 changed files with 20 additions and 8 deletions

View File

@@ -145,12 +145,14 @@ export class SpotClientV3 extends BaseRestClient {
getOpenOrders(
symbol?: string,
orderId?: string,
limit?: number
limit?: number,
orderCategory?: 0 | 1
): Promise<APIResponseV3<any>> {
return this.getPrivate('/spot/v3/private/open-orders', {
symbol,
orderId,
limit,
orderCategory,
});
}
@@ -158,7 +160,8 @@ export class SpotClientV3 extends BaseRestClient {
getPastOrders(
symbol?: string,
orderId?: string,
limit?: number
limit?: number,
orderCategory?: 0 | 1
): Promise<APIResponseV3<any>> {
return this.getPrivate('/spot/v3/private/history-orders', {
symbol,