Too much request weight used; current limit is 1200 request weight per 1 MINUTE. For /api/v3/allOrders

I am trying to fetch all old orders for a user account, by using the api /api/v3/allOrders .
I know this is the only way to fetch all orders by using iterating through this API call for all possible asset symbols.
But unfortunately it fails after a certain number of requests (each time its a different count). With
"code":-1003,"msg":"Too much request weight used; current limit is 1200 request weight per 1 MINUTE. Please use WebSocket Streams for live updates to avoid polling the API."

My method is not for Live updates. it is to fetch all past order updates from the account, How to avoid this failure.

You need to implement proper rate limiting. If you’re iterating through API calls using startTime/endTime, try adding a short sleep/pause after each call so you don’t exceed the limit.

1 Like