go-binance
go-binance copied to clipboard
Configurable websocket endpoint
I'd like to use binance's SPOT testnet (I'm tired of "wasting money" for my tests), but I don't see a way to configure the websocket endpoint right now.
Could it be possible to add to the websocket some kind of way to configure the endpoint like there's with the REST client? I see there's a WSConfig
struct, but its creation is forced in the websocket methods, not allowing to change its value.
Hi @elboletaire , thanks for the suggestion, we need a websocket client to set this endpoint just like the REST client. I'll add this feature.
Now that there are new api clusters deployed (and with the multiple connection problems these days due to the shutdowns in USA), I think it's a great moment to pump this up :)
You can find the new clusters in the following urls:
https://api1.binance.com/api/v3/ping https://api2.binance.com/api/v3/ping https://api3.binance.com/api/v3/ping
Edit: ok ignore my stupidity, I forgot that the endpoint was completely different 🙃