Missing Historical Data API Output for FUTURE and OPTIONS

Hi,

Can you pls check what’s wrong in this request ? I’m unable to fetch historical data for nifty future

curl -X 'POST' \
  'https://api.dhan.co/charts/historical' \
  -H 'accept: application/json' \
  -H 'access-token: ' \
  -H 'Content-Type: application/json' \
  -d '{
  "symbol": "NIFTY-MAR2023-FUT",
  "exchangeSegment": "NSE_FNO",
  "instrument": "FUTIDX",
  "expiryCode":0,
  "fromDate": "2023-02-20",
  "toDate": "2023-02-23"
}'

Hello @Bishnupada

We checked this and there seems to be a bug at our end for Futures Historical data. We will deploy the fix soon.

Hi, Any update the above issue, i also tried now still facing same issue

Hello @Rajeshrajc

Welcome to Dhan Community!

This issue was fixed. Can you please confirm what is the exact error message that you are getting.

Not able to get the historical data for options in NSE_NFO can you please help with a sample

{
“symbol”: “TCS-Jun2023-3200-CE”,
“exchangeSegment”: “NSE_FNO”,
“instrument”: “OPTSTK”,
“expiryCode”: 0,
“fromDate”: “2023-06-14”,
“toDate”: “2023-06-27”
}

Hello @Shashidhar

Looks like you are trying to get Historical data for Options. Currently, we do not provide Options Historical Data. We will try to include this as part of our Data APIs soon.

Is API available for historical data now?

Hello @rajini

Historical Daily data is available for maximum instruments and segments. You can check the same in the documentation - Historical Data - DhanHQ Ver 1.0 / API Document.