JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.02k stars 420 forks source link

Bug in GetOpenInterestAsync #1318

Closed hcanak closed 6 months ago

hcanak commented 7 months ago

Hello,

When you call GetOpenInterestAsync too frequently it gives error -1003 as expected. When this error occurs;

Error.Message is "Server rate limit exceeded: {"code":-1003,"msg":"Too many requests; current limit of IP(194.233.xxxxx) is 2400 requests per minute. Please use the websocket for live updates to avoid polling the API."}"

Error.Code is "429"

It seems that fails to correctly parse the json string. Can you check? @JKorf

hcanak commented 7 months ago

Above issue is also seen in GetKlinesAsync When you call GetKlinesAsync too frequently Error.Message is Server rate limit exceeded: {"code":-1003,"msg":"Too many requests; current limit of IP(194.233.****) is 2400 requests per minute. Please use the websocket for live updates to avoid polling the API."}

JKorf commented 6 months ago

Has been fixed