wisespace-io / binance-rs

Rust Library for the Binance API
Other
649 stars 295 forks source link

Add Binance.US support #74

Closed gmale closed 3 years ago

gmale commented 3 years ago

Can this library be modified to make it easier to use with Binance.US? In most cases, this involves using endpoints like api.binance.us instead of api.binance.com. As far as I'm aware, the APIs are identical.

In most places, static constants seem to be used for defining hosts, particularly when it comes to websockets. It might be nice to create an Enum of supported hosts and then allow that to be passed into the Binance::new and WebSockets::connect functions.

dorak88783 commented 3 years ago

This can be added to the scope of issue https://github.com/wisespace-io/binance-rs/issues/61; there's a proposal there how to implement this.

wisespace-io commented 3 years ago

@gmale We just released a new version which supports this. Please check https://github.com/wisespace-io/binance-rs#testnet-and-api-clusters Kudos to @dorak88783