Eligibility Error
When trying to connect to api.binance.com there is an eligibility issue. It appears that Binance wants you to use data-api.binance.vision for public market data requests:
https://developers.binance.com/docs/binance-spot-api-docs/faqs/market_data_only
updating api.binance.com -> data-api.binance.vision solves the issue.
Hey @Warden314, thanks for catching this! I haven't hit this issue myself (probably region-dependent), but you're right that api.binance.com has geographic restrictions.
I've updated the code to use data-api.binance.vision as the primary endpoint with api.binance.com as fallback. This should work for everyone regardless of location since data-api.binance.vision is specifically for public market data with relaxed restrictions.
Thanks for flagging this!