Connection Interrupted by remote host

I’m making a call to the binance API every 0.25 seconds to get the prices of all coins.
Then somewhen this exception appears.

Binance API request limit = 1200 requests per minute.
Requests I made every minute = 60 / 0.25 = 240.

So, I figure that limits is not the problem.

What’s happening here?
Thank you.

When using GET /api/v3/ticker/price, if “symbol” parameter is omitted, the weight per request is 2.

As for the error itself, the reason can be vast because network can be unstable in the middle of data transmission, be prepared to handle eventual failures on the Application Layer, you can try to rebuild the TCP session or ignore and retry.

Thank you Aisling! :smiley: