Skip to content

Binance websocket endpoint configuration overview

Oliver Zehentleitner edited this page May 11, 2024 · 24 revisions

Predefined and supported settings of BinanceWebSocketApiManager()

Exchange string Exchange url Max. subscriptions Supported
binance.com wss://stream.binance.com:9443/ 1024 [source (2020-04-23)] yes
binance.com-testnet wss://testnet.binance.vision/ binance.com yes
binance.com-margin wss://stream.binance.com:9443/ binance.com yes
binance.com-margin-testnet wss://testnet.binance.vision/ binance.com yes
binance.com-isolated_margin wss://stream.binance.com:9443/ binance.com yes
binance.com-isolated_margin-testnet wss://testnet.binance.vision/ binance.com yes
binance.com-futures wss://fstream.binance.com/ 200 [source (2020-10-27)] yes
binance.com-futures-testnet wss://stream.binancefuture.com/ binance.com-futures yes
binance.com-coin_futures wss://dstream.binance.com/ 200 [source (2021-04-15)] yes Not complete: issue#134
binance.us wss://stream.binance.us:9443/ binance.com yes
trbinance.com wss://stream-cloud.trbinance.com/ binance.com yes NO USERDATA!
binance.org wss://dex.binance.org/api/ binance.com yes
binance.org-testnet wss://testnet-dex.binance.org/api binance.com yes

Override connection settings of BinanceWebSocketApiManager()

Parameter list

  • websocket_base_uri
  • max_subscriptions_per_stream
  • restful_base_uri
  • restful_path_userdata
  • exchange_type