From 61459b27ca6dd170ba5a80e358a362c8265c1316 Mon Sep 17 00:00:00 2001 From: "JJ-Cro (Codex)" Date: Mon, 16 Nov 2026 12:28:26 +0100 Subject: [PATCH 1/2] fix(v4.8.6): correct DCP options product type - Correct the DCP product selector to OPTIONS and document supported products (fixes #585) - Bump the SDK version to 4.8.6 - Update the Node.js version pin to v24.22.3 --- .nvmrc | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/rest-client-v5.ts | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.nvmrc b/.nvmrc index 5bcf9c6e..22fbfc06 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v24.18.0 +v24.22.3 diff --git a/package-lock.json b/package-lock.json index 7a19c170..276546fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "4.8.5", + "version": "4.8.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "4.8.5", + "version": "4.8.6", "license": "MIT", "dependencies": { "@types/ws": "8.18.1", diff --git a/package.json b/package.json index 71b6283c..8eaada35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "4.8.5", + "version": "4.8.6", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index b2ff5b1b..837480ba 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -1489,15 +1489,15 @@ export class RestClientV5 extends BaseRestClient { } /** - * This endpoint allows you to set the disconnection protect time window. Covers: option (unified account). + * This endpoint allows you to set the disconnection protect time window. Covers: options, spot and derivatives. * * 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. + * The default time window is 10 seconds. The default product is OPTIONS. * * Only for institutional clients! */ setDisconnectCancelAllWindowV2(params: { - product?: 'OPTION' | 'SPOT' | 'DERIVATIVES'; + product?: 'OPTIONS' | 'SPOT' | 'DERIVATIVES'; timeWindow: number; }): Promise> { return this.postPrivate('/v5/order/disconnected-cancel-all', params); From 3c29854e44f437e23245a3fe29a55d0445847ef8 Mon Sep 17 00:00:00 2001 From: JJ-Cro sync bot Date: Mon, 16 Nov 2026 13:07:28 +0100 Subject: [PATCH 2/2] chore: regenerate endpoint docs and examples --- llms.txt | 108 +++++++++++++++++++++++++++---------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/llms.txt b/llms.txt index b27e7188..a9a6cecf 100644 --- a/llms.txt +++ b/llms.txt @@ -7625,11 +7625,6 @@ File: .npmrc min-release-age=30 save-exact=true -================ -File: .nvmrc -================ -v24.18.0 - ================ File: jest.config.ts ================ @@ -10216,6 +10211,11 @@ preMmrE4: number; // Maintenance margin rate before checking (in basis points) postImrE4: number; // Initial margin rate after checking (in basis points) postMmrE4: number; // Maintenance margin rate after checking (in basis points) +================ +File: .nvmrc +================ +v24.22.3 + ================ File: src/types/request/v5-crypto-loan.ts ================ @@ -12134,6 +12134,51 @@ protected resolveEmittableEvents( ⋮---- // In case of catastrophic failure, fallback to noisy emit update +================ +File: .gitignore +================ +!.gitkeep +.DS_STORE +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json +pids +*.pid +*.seed +*.pid.lock +node_modules/ +.npm +.eslintcache +.node_repl_history +*.tgz +.yarn-integrity +.env +.env.test +.cache +lib +dist +doc +bundleReport.html +.history/ +rawReq.ts +localtest.sh +localtest.ts +privaterepotracker +restClientRegex.ts +repomix.sh + +examples/ignored +examples/ts-testnet-private.ts +examples/ts-testnet-trade.ts +examples/ts-testnet.ts +*.pem +.issue* +docs/research +tmp + ================ File: src/types/response/v5-earn.ts ================ @@ -13753,51 +13798,6 @@ export interface WebsocketClientOptions extends WSClientConfigurableOptions { ⋮---- export type WsEventInternalSrc = 'event' | 'function' | 'frame'; -================ -File: .gitignore -================ -!.gitkeep -.DS_STORE -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json -pids -*.pid -*.seed -*.pid.lock -node_modules/ -.npm -.eslintcache -.node_repl_history -*.tgz -.yarn-integrity -.env -.env.test -.cache -lib -dist -doc -bundleReport.html -.history/ -rawReq.ts -localtest.sh -localtest.ts -privaterepotracker -restClientRegex.ts -repomix.sh - -examples/ignored -examples/ts-testnet-private.ts -examples/ts-testnet-trade.ts -examples/ts-testnet.ts -*.pem -.issue* -docs/research -tmp - ================ File: examples/Rest/rest-v5-custom-url.ts ================ @@ -17945,15 +17945,15 @@ setDisconnectCancelAllWindow( ): Promise> ⋮---- /** - * This endpoint allows you to set the disconnection protect time window. Covers: option (unified account). + * This endpoint allows you to set the disconnection protect time window. Covers: options, spot and derivatives. * * 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. + * The default time window is 10 seconds. The default product is OPTIONS. * * Only for institutional clients! */ setDisconnectCancelAllWindowV2(params: { - product?: 'OPTION' | 'SPOT' | 'DERIVATIVES'; + product?: 'OPTIONS' | 'SPOT' | 'DERIVATIVES'; timeWindow: number; }): Promise> ⋮---- @@ -24594,7 +24594,7 @@ File: package.json ================ { "name": "bybit-api", - "version": "4.8.5", + "version": "4.8.6", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "main": "lib/index.js", "types": "lib/index.d.ts",