feat(): updated types for Market and Trade categories
This commit is contained in:
@@ -551,7 +551,9 @@ export class RestClientV5 extends BaseRestClient {
|
||||
|
||||
cancelAllOrders(
|
||||
params: CancelAllOrdersParamsV5,
|
||||
): Promise<APIResponseV3WithTime<{ list: OrderResultV5[] }>> {
|
||||
): Promise<
|
||||
APIResponseV3WithTime<{ list: OrderResultV5[]; success: string }>
|
||||
> {
|
||||
return this.postPrivate('/v5/order/cancel-all', params);
|
||||
}
|
||||
|
||||
@@ -566,6 +568,18 @@ export class RestClientV5 extends BaseRestClient {
|
||||
return this.getPrivate('/v5/order/history', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Query users' execution records, sorted by execTime in descending order
|
||||
*
|
||||
* Unified account covers: Spot / Linear contract / Options
|
||||
* Normal account covers: USDT perpetual / Inverse perpetual / Inverse futures
|
||||
*/
|
||||
getExecutionList(
|
||||
params: GetExecutionListParamsV5,
|
||||
): Promise<APIResponseV3WithTime<CategoryCursorListV5<ExecutionV5[]>>> {
|
||||
return this.getPrivate('/v5/execution/list', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* This endpoint allows you to place more than one order in a single request.
|
||||
* Covers: Option (UTA, UTA Pro) / USDT Perpetual, UDSC Perpetual, USDC Futures (UTA Pro)
|
||||
@@ -675,7 +689,7 @@ export class RestClientV5 extends BaseRestClient {
|
||||
* Only for institutional clients!
|
||||
*/
|
||||
setDisconnectCancelAllWindowV2(params: {
|
||||
product: 'OPTION' | 'SPOT' | 'DERIVATIVES';
|
||||
product?: 'OPTION' | 'SPOT' | 'DERIVATIVES';
|
||||
timeWindow: number;
|
||||
}): Promise<APIResponseV3<undefined>> {
|
||||
return this.postPrivate('/v5/order/disconnected-cancel-all', params);
|
||||
@@ -811,18 +825,6 @@ export class RestClientV5 extends BaseRestClient {
|
||||
return this.postPrivate('/v5/position/add-margin', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Query users' execution records, sorted by execTime in descending order
|
||||
*
|
||||
* Unified account covers: Spot / Linear contract / Options
|
||||
* Normal account covers: USDT perpetual / Inverse perpetual / Inverse futures
|
||||
*/
|
||||
getExecutionList(
|
||||
params: GetExecutionListParamsV5,
|
||||
): Promise<APIResponseV3WithTime<CategoryCursorListV5<ExecutionV5[]>>> {
|
||||
return this.getPrivate('/v5/execution/list', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Query user's closed profit and loss records. The results are sorted by createdTime in descending order.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user