LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
685 stars 165 forks source link

There are two Binance baseurls for futures #153

Closed ghost closed 3 years ago

ghost commented 3 years ago

Great work... is it possible to include the two different Binance Futures types (USD-M futures and Coin-M futures)?

https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/commit/f68f55b104f40a887fd9febd2040f035903be6b6 188 elif self.exchange == "binance.com-futures": 189 self.websocket_base_uri = "wss://fstream.binance.com/"

The above works for USD-M futures, but for coin futures it should point to: wss://dstream.binance.com

And futures seem to be more popular than regular crypto these days, so maybe you can include this too?

oliver-zehentleitner commented 3 years ago

Thanks!

Unfortunately there is more to change than the base URL, it also needs special handling of listenkeys....

Continue here: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/issues/134