diff --git a/examples/ws-private-v5.ts b/examples/ws-private-v5.ts index f7d91e6..e40b720 100644 --- a/examples/ws-private-v5.ts +++ b/examples/ws-private-v5.ts @@ -10,8 +10,8 @@ const logger = { // trace: (...params) => console.log('trace', ...params), }; -const key = process.env.API_KEY; -const secret = process.env.API_SECRET; +const key = process.env.API_KEY_COM; +const secret = process.env.API_SECRET_COM; /** * Prepare an instance of the WebSocket client. This client handles all aspects of connectivity for you: @@ -62,9 +62,12 @@ wsClient.on('reconnected', (data) => { */ wsClient.subscribeV5('position', 'linear'); -wsClient.subscribeV5('execution', 'linear'); wsClient.subscribeV5(['order', 'wallet', 'greeks'], 'linear'); +wsClient.subscribeV5('execution', 'linear'); +// wsClient.subscribeV5('execution.fast', 'linear'); +// wsClient.subscribeV5('execution.fast.linear', 'linear'); + /** * The following has the same effect as above, since there's only one private endpoint for V5 account topics: */ diff --git a/package-lock.json b/package-lock.json index 7bcfd58..a951b69 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "4.1.6", + "version": "4.1.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "4.1.6", + "version": "4.1.7", "license": "MIT", "dependencies": { "axios": "^1.7.9", diff --git a/package.json b/package.json index 0e7d3cf..0663b57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "4.1.6", + "version": "4.1.7", "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/util/websockets/websocket-util.ts b/src/util/websockets/websocket-util.ts index c4a4ee0..656a727 100644 --- a/src/util/websockets/websocket-util.ts +++ b/src/util/websockets/websocket-util.ts @@ -78,6 +78,11 @@ const PRIVATE_TOPICS = [ 'order', 'wallet', 'greeks', + // v5 fast execution topics are private + 'execution.fast', + 'execution.fast.linear', + 'execution.fast.inverse', + 'execution.fast.spot', ]; /**