From 5d039d7fdfcf4bfbc9432deb4f76c810108a0838 Mon Sep 17 00:00:00 2001 From: vladyslav Date: Tue, 8 Nov 2022 16:47:33 +0200 Subject: [PATCH] fix okex l2updates --- src/exchanges/OkexClient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/exchanges/OkexClient.ts b/src/exchanges/OkexClient.ts index 70537c5f..7f60a428 100644 --- a/src/exchanges/OkexClient.ts +++ b/src/exchanges/OkexClient.ts @@ -209,7 +209,7 @@ export class OkexClient extends BasicClient { this._sendMessage( JSON.stringify({ op: "subscribe", - args: [this._marketArg("books-l2-tbt", market)], + args: [this._marketArg("books", market)], }), ); } @@ -218,7 +218,7 @@ export class OkexClient extends BasicClient { this._sendMessage( JSON.stringify({ op: "unsubscribe", - args: [this._marketArg("books-l2-tbt", market)], + args: [this._marketArg("books", market)], }), ); } @@ -286,7 +286,7 @@ export class OkexClient extends BasicClient { } // l2 updates - if (msg.arg.channel.match(/books-l2-tbt/)) { + if (msg.arg.channel.match(/books/)) { this._processLevel2Update(msg); return; }