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

Replace api.binance.com to api.binance.us

Open pnmice opened this issue 3 years ago • 0 comments

Hi There,

I would like to use proxy for Binance US. I have replaced a hostname, but it works for USDT, but not for USD.

https://github.com/pnmice/binance-proxy/commit/f27b9382174756b08fe793f7ca601ccf45071493

proxy log level=debug msg="SPOT HBARUSD@5m kline websocket connected."

bot log freqtrade.exchange.common - WARNING - fetch_l2_order_book() returned exception: "Could not get order book due to RequestTimeout. Message: binanceus GET http://binance-proxy:8090/api/v3/depth?symbol=HBARUSD&limit=5" freqtrade.exchange.common - WARNING - retrying fetch_l2_order_book() still for 4 times

Not working with USD curl 'https://172.29.0.11:8090/api/v3/depth?symbol=HBARUSD&limit=5' it's stuck

If I use USDT, it works curl -I 'http://172.29.0.11:8090/api/v3/depth?symbol=HBARUSDT&limit=5' HTTP/1.1 200 OK Content-Type: application/json Data-Source: websocket

Good curl -I 'https://api.binance.us/api/v3/depth?symbol=HBARUSD&limit=5' HTTP/2 200

Could you give a hint? Are there some limitations in code for USD tickers? Thanks!

pnmice avatar Jan 31 '22 06:01 pnmice