Skip to content

Commit 533ec46

Browse files
author
Tiago Siebler
committed
fix: WS orders-algo channel requires auth
1 parent a2c52d4 commit 533ec46

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/util/BaseWSClient.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,12 @@ export abstract class BaseWebsocketClient<
971971

972972
// Guard to assert auth for some of the public topics that require it
973973
for (const topicRequest of topicsForWsKey) {
974-
if (PUBLIC_CHANNELS_WITH_AUTH.includes(topicRequest.topic)) {
975-
await this.assertIsAuthenticated(wsKey, true);
974+
if (
975+
PUBLIC_CHANNELS_WITH_AUTH.includes(topicRequest.topic) ||
976+
PRIVATE_CHANNELS.includes(topicRequest.topic)
977+
) {
978+
const skipPublicWsKeyCheck = true;
979+
await this.assertIsAuthenticated(wsKey, skipPublicWsKeyCheck);
976980
break;
977981
}
978982
}

0 commit comments

Comments
 (0)