From d638cf174aeb563b6d4dad4a813dd3257fc4fce0 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Fri, 28 Feb 2025 13:20:45 +0000 Subject: [PATCH] fix(): request type for wsapi batch order commands --- src/types/websockets/ws-api.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/types/websockets/ws-api.ts b/src/types/websockets/ws-api.ts index c0d5295..962a232 100644 --- a/src/types/websockets/ws-api.ts +++ b/src/types/websockets/ws-api.ts @@ -100,9 +100,18 @@ export interface WsAPITopicRequestParamMap { 'order.create': OrderParamsV5; 'order.amend': AmendOrderParamsV5; 'order.cancel': CancelOrderParamsV5; - 'order.create-batch': BatchOrderParamsV5[]; - 'order.amend-batch': BatchAmendOrderParamsV5[]; - 'order.cancel-batch': BatchCancelOrderParamsV5[]; + 'order.create-batch': { + category: 'option' | 'linear'; + orders: BatchOrderParamsV5[]; + }; + 'order.amend-batch': { + category: 'option' | 'linear'; + orders: BatchAmendOrderParamsV5[]; + }; + 'order.cancel-batch': { + category: 'option' | 'linear'; + orders: BatchCancelOrderParamsV5[]; + }; } /**