Hi all,
I’m currently using the binance-futures-connector-python
SDK and working with the Binance Futures Testnet for development purposes.
I’m able to connect to the REST API for the testnet by setting the base URL to https://testnet.binancefuture.com
. However, I’m having trouble finding official documentation or examples for connecting to the WebSocket streams in the testnet environment.
Questions:
- What is the correct WebSocket base URL for the Binance Futures Testnet?
- Can I use public and user data WebSocket streams (like
aggTrade
,depth
, oruser data
) on the testnet? If so, how? - Does the
binance-futures-connector-python
package support WebSocket testnet connections natively? If not, what’s the recommended way to override or configure it?
I tried using wss://stream.binancefuture.com/ws
, but would like to confirm if that’s officially supported.
Any clarification or example code would be greatly appreciated!
Thanks in advance