BingX-API / docs

BingX API Docs
4 stars 4 forks source link

Rate limits incorrect behaviour #1

Open kushsharma2910 opened 1 year ago

kushsharma2910 commented 1 year ago

Though the public requests are said to have 20 requests per second limit, I observe the following when I call get order book public request.

On the left is the time epoch of the response. As you can see within a second, it keeps switching between 429 and 200 response code.

1671442047.165807 Update ob response code = 200 1671442047.3440382 Update ob response code = 200 1671442048.012679 Update ob response code = 429 1671442048.0583665 Update ob response code = 200 <== Assuming 1 sec window starts here as I got first 200 after 429 1671442048.0742612 Update ob response code = 429 <== It shouldn't respond with 429 again within the second window 1671442048.354246 Update ob response code = 429 1671442049.002452 Update ob response code = 429 1671442049.1374915 Update ob response code = 200 1671442049.3620355 Update ob response code = 200 1671442049.952536 Update ob response code = 429 1671442049.9685616 Update ob response code = 429