binance / binance-cli

Simple CLI to Binance API
24 stars 5 forks source link

How to connect to Binance US? #2

Closed makuchaku closed 1 year ago

makuchaku commented 1 year ago

Hi there, Is there a way to specify to the CLI that I want to connect to Binance US?

In other libraries that I use, I have to set an env variable BINANCE_TLD=US which is picked up by the library.

Thanks!

makuchaku commented 1 year ago

Same question for how to setup the CLI to work with Binance Testnet? Thanks!

2pd commented 1 year ago

Thanks for the feedback, please update to the latest version that support to change the base URL.

export SERVER=https://testnet.binance.vision

As this cli tool is built for .com, it's not officially supporting the .us API. However you may have a try by change the base url and see if it works for .us as well.