DH-904 error on historical data - throttling query

I have searched the forum, but the solution given in trade_hull appears to be to introduce a sleep(2) before each call, that is too slow. For my historical data collection, i am using 4 requests / second which means that there is a 0.25 second gap before each intraday historical data call. But I still get DH-904 error. This is after market hours and no other process is running on dhan. The v2 api documents suggests that the data apis are only throttled for second and day limits. Is there some other limit that i am missing or a more recent throttle guide?
The v2 api throttle that i am using is below

1 Like

No one replied, but from trial and error, i find that if i exceed 10K historical requests an hour, Dhan starts throwing DH-904. The team should update their API throttle documentation.

1 Like

Hello Pankaj,

We have not kept any such limit on hour basis, but will definitely check the configuration at our end. Is this still disrupting your algo?

I am laso getting same error WARNING TECHM: CANDLE_FETCH_APIError (failure=HTTP_REJECTION, http_status=429, broker_code=DH-904) Please advise. Hwo to fix it?

"Dhan’s historical data API works really well and fast, but there are a few issues:

  • The daily historical data for the previous day is only available after 8 AM the next day.

  • If it is a Saturday or Sunday, that data is only available after 8 AM on Monday.

  • Also, in both the mobile app and website, the Equity Holding P&L gets stuck over the weekend and only refreshes on Monday."