This simply looks like there is an error in your script, where you have defined variables dhan_client_id and dhan_access_token but not used the same as arguments in the dhanhq class. You can try with the below snippet:
{‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘HTTP429’, ‘message’: ‘Your account is not authorize to use this API. Fulfill eligibility criteria or subscribe the plan.’}, ‘data’: ‘’}
We have changed the eligibility for Historical Data, as it has now been combined with Live Market Feed. You can subscribe data at a monthly subscription of ₹499 + taxes if you wish to use Historical or Live Market Data.
Over here, the security ID (token) being used by you is for MCX 29 Feb 3300 CE in BSE instead of NSE, hence the data is not shown. You can filter the same in the Security ID List by exchange.
The Security ID for MCX 29 Feb 3300 CE in NSE is ‘156312’.
I have another query.
What is the delay in generating 1 min intraday historical data?
For example, if I want to get hist data for “WIPRO-Feb2024-540CE” option at exactly 9:16:00 will I get it within the next 1 second. What are your thoughts?
If there is significant delay, then what approach should i take to get options hist data using ticks data(websteram)
Also if I need to give date input to the intraday historical function how do I do it?
There is no measured delay as such with 1 min historical data. But if you want to call intraday data only, but at real-time then it is preferred to use websockets (market feed).
You can build candle data by storing incoming ticks in your local storage and then finding Open, High, Low and Close from the same.