feat(#187, v3.1.2): add support for new orderCategory param for spotv3
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -29,11 +29,13 @@ export interface SpotCancelOrderBatchRequest {
|
||||
symbol: string;
|
||||
side?: OrderSide;
|
||||
orderTypes: OrderTypeSpot[];
|
||||
orderCategory?: 0 | 1;
|
||||
}
|
||||
|
||||
export interface SpotOrderQueryById {
|
||||
orderId?: string;
|
||||
orderLinkId?: string;
|
||||
orderCategory?: 0 | 1;
|
||||
}
|
||||
|
||||
export interface SpotSymbolInfo {
|
||||
|
||||
@@ -60,7 +60,7 @@ export interface UMOrderRequest {
|
||||
category: UMCategory;
|
||||
symbol: string;
|
||||
side: OrderSide;
|
||||
positionIdx?: '0';
|
||||
positionIdx?: '0' | '1' | '2';
|
||||
orderType: UMOrderType;
|
||||
qty: string;
|
||||
price?: string;
|
||||
|
||||
Reference in New Issue
Block a user