From 0ed98f478d3c1e658e1a00e9a807d4bd25bbbb2f Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:28:50 +0200 Subject: [PATCH] chore: DCP function update --- src/rest-client-v5.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index 7ca5c45..52ff883 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -559,6 +559,10 @@ export class RestClientV5 extends BaseRestClient { * * If you need to turn it on/off, you can contact your client manager for consultation and application. * The default time window is 10 seconds. + * + * Only for institutional clients! + * + * If it doesn't work, use v2! */ setDisconnectCancelAllWindow( category: 'option', @@ -570,8 +574,15 @@ export class RestClientV5 extends BaseRestClient { }); } - // TO CHECK! - /* setDisconnectCancelAllWindow( + /** + * This endpoint allows you to set the disconnection protect time window. Covers: option (unified account). + * + * If you need to turn it on/off, you can contact your client manager for consultation and application. + * The default time window is 10 seconds. + * + * Only for institutional clients! + */ + setDisconnectCancelAllWindowV2( product: 'OPTION' | 'SPOT' | 'DERIVATIVES', timeWindow: number, ): Promise> { @@ -579,7 +590,7 @@ export class RestClientV5 extends BaseRestClient { product, timeWindow, }); - } */ + } /** *