go-binance icon indicating copy to clipboard operation
go-binance copied to clipboard

Configurable websocket endpoint

Open elboletaire opened this issue 3 years ago • 2 comments

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.

elboletaire avatar Oct 29 '20 20:10 elboletaire

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.

adshao avatar Nov 05 '20 06:11 adshao

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 🙃

elboletaire avatar Feb 21 '21 16:02 elboletaire