Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace api.binance.com to api.binance.us #5

Open
pnmice opened this issue Jan 31, 2022 · 0 comments
Open

Replace api.binance.com to api.binance.us #5

pnmice opened this issue Jan 31, 2022 · 0 comments

Comments

@pnmice
Copy link

pnmice commented Jan 31, 2022

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.

pnmice@f27b938

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant