Binance: Too many subscriptions #282
-
Hello, I am attempting to subscribe to all of Binance's markets (1396 in total) in a for loop using the following: I have even tried subscribing to 200 markets at a time with a delay of 1 minute but the limit seems to be 1025 markets. Obviously I am hitting the websocket limit Binance has documented here: But I can't figure out a way around it other than 2 separate servers. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looking at the doco it states
It looks like that's not limited by IP though. Can you just create a second client instance? const client1 = new Binance(); // subscribes to first 1024 streams
const client2 = new Binance(); // subscribes to the remaining streams |
Beta Was this translation helpful? Give feedback.
Looking at the doco it states
It looks like that's not limited by IP though. Can you just create a second client instance?