I am still hitting rate limit while fetch 5 minute candles for Options, and I am fetching it via requesting to URL as the Dhanhq older versions’ Intraday methods don’t respond with OI.
Seems like all these issues were addressed in the latest release v2.2, Could any one please guide me how do I access that? As of now i can max access the yanked version of 2.1.0
Cheers!
Below are the release notes in Dhan’s official API documentation page (with links removed) :
Improvements
Intraday Historical Data
Intraday Historical Data is now available for last 5 years of data. This is available for all NSE, BSE and MCX instruments. Along with increase in time range, we have also added OI data for futures and options instruments. There is oi parameter added to the API. Also, the from_date and to_date has option to pass IST time as well to fetch particular number of bars only. You can head over to documentation for updates in fields.
Daily Historical Data
Daily Historical Data has added OI data for futures and options instruments. There is oi parameter added to the API which is optional and can be used to fetch OI data
CorrelationId on Live Order Update
Live Order Update now has two additional keys called ‘CorrelationId’ and ‘Remarks’
Breaking Changes
Changes in Rate Limit
Rate limits have been increased for Data APIs which includes Historical Data. There are no rate limits on minute and hourly time frames. You can request upto 1,00,000 requests in a day and seconds timeframe are limited to 5 requests per second
Based on your query we understand that you are making api call to fetch 5-minute intraday candle data. Please note that the rate limit for the same is 5 requests per second, so kindly ensure that you are not exceeding this limit.
But then have I interpreted the Breaking changes in the release notes, wrongly? Release note says 2.2 and yanked version 2.1
Below are the notes:
“Rate limits have been increased for Data APIs which includes Historical Data. There are no rate limits on minute and hourly time frames. You can request upto 1,00,000 requests in a day and seconds timeframe are limited to 5 requests per second”
Also, the intraday method of dhanhq does not accept or return OI data for candle, be it any timeframe. Any idea there?
Seems like there is some confusion here. We have added release notes for all the changes or additions that we do on APIs here: Releases - DhanHQ Ver 2.0 / API Document.
The base version of API remains as v2 only. If you are referring to the Python library, there is a different versioning (which is done by pypi itself). Python library v2.1.0 has all the updates on the API already.
Can you tell me where are you facing the rate limit (endpoint and request), and we can assist you accordingly.
I think the rate limit is still 5 per seconds for historical 5 min candles. Anyways, but the python method is not returning the OI details neither there is a way to pass OI:True as parameter to it - we have it for HTTPs requests though. Is it a miss or am I missing something here?