Tucsky / aggr

Cryptocurrency trades aggregator
https://charts.aggr.trade/
GNU General Public License v3.0
830 stars 240 forks source link

Binance Spot Data No Longer Showing Since Their API Change #267

Closed solartrans closed 1 year ago

solartrans commented 1 year ago

Binance updated their APIs in the past day or so, which included some new geo-restrictions.

It appears Binance spot data is no longer coming through on aggr. Noticed this on BTC and ETH but probably affects others. I have the left column set for spot, and the right for futures. Binance futures seems to be fine, just spot that is not coming through.

Screenshot below. I've heard some folks managed to circumvent this by changing proxies on their API monitoring systems to new regions. Perhaps aggr is facing a different issue though.

image

Tucsky commented 1 year ago

Someone could make a public server that would act like binance public ws api To proxy the trades and liquidations

so we could have a set of apis for binance [ wss://stream.binance.com:9443/ws wss://backup server 1 wss://backup server 2 ... ]

if one is unrechable it would try the second and so on

But we need that someone to share the proxy servers 😄 so if anyone is interested I can do a simple node script that would get the job done

Tucsky commented 1 year ago

@solartrans they told me the websocket is not restricted yet but could in the future can you share the error from binance api ? maybe your error is something completely unrelated 🤔

in the dev tool (F12, or Ctrl + Shift + I), either console tab or network tab

image
solartrans commented 1 year ago

Thanks for looking at this! I didn't realize that you do not have proxies setup on the backend of aggr. The issue was that I am accessing aggr from a US IP, so that's thy Binance were blocking me. Changing to another country's IP has solved the problem. Cheers.