feat(): expand category options in batch order methods to include 'spot' and 'inverse'

This commit is contained in:
JJ-Cro
2025-06-17 13:05:28 +02:00
parent e302c9b94f
commit e5949d1537

View File

@@ -810,7 +810,7 @@ export class RestClientV5 extends BaseRestClient {
* The structure of the two lists are completely consistent.
*/
batchSubmitOrders(
category: 'option' | 'linear',
category: 'spot' | 'option' | 'linear' | 'inverse',
orders: BatchOrderParamsV5[],
): Promise<
APIResponseV3WithTime<
@@ -835,7 +835,7 @@ export class RestClientV5 extends BaseRestClient {
* A maximum of 20 orders can be amended per request.
*/
batchAmendOrders(
category: 'option' | 'linear',
category: 'spot' | 'option' | 'linear' | 'inverse',
orders: BatchAmendOrderParamsV5[],
): Promise<
APIResponseV3WithTime<
@@ -860,7 +860,7 @@ export class RestClientV5 extends BaseRestClient {
* You can cancel unfilled or partially filled orders. A maximum of 20 orders can be cancelled per request.
*/
batchCancelOrders(
category: 'option' | 'linear',
category: 'spot' | 'option' | 'linear' | 'inverse',
orders: BatchCancelOrderParamsV5[],
): Promise<
APIResponseV3WithTime<