From e81b35b0259f2aec0b58ced167b761f0b9006ae9 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Fri, 13 Aug 2021 17:01:37 +0100 Subject: [PATCH] fix(#106): reversed endpoints --- package.json | 2 +- src/websocket-client.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e989ea3..05dd979 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "2.0.7", + "version": "2.0.8", "description": "Node.js connector for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/websocket-client.ts b/src/websocket-client.ts index fa9576f..9f6dbdc 100644 --- a/src/websocket-client.ts +++ b/src/websocket-client.ts @@ -17,12 +17,12 @@ const inverseEndpoints = { const linearEndpoints = { private: { livenet: 'wss://stream.bybit.com/realtime_private', - livenet2: 'wss://stream.bytick.com/realtime_public', + livenet2: 'wss://stream.bytick.com/realtime_private', testnet: 'wss://stream-testnet.bybit.com/realtime_private' }, public: { livenet: 'wss://stream.bybit.com/realtime_public', - livenet2: 'wss://stream.bytick.com/realtime_private', + livenet2: 'wss://stream.bytick.com/realtime_public', testnet: 'wss://stream-testnet.bybit.com/realtime_public' } };