DH-905 error on every /v2/charts/rollingoption (Expired Options Data) request, even with the exact example from the docs, though my Data API plan is active and /charts/historical works

Hi Dhan API Team,

My Data API plan is active (valid till 03-12-2026), and /v2/charts/historical works fine with my access token. But every request to POST /v2/charts/rollingoption (Expired Options Data) returns:

HTTP 400 – {“errorType”:”Input_Exception”,”errorCode”:”DH-905",”errorMessage”:”Missing required fields, bad values for parameters etc.”}

This happens even with the exact example payload from your documentation:

{“exchangeSegment”: “NSE_FNO”, “interval”: “1”, “securityId”: 13, “instrument”: “OPTIDX”, “expiryFlag”: “MONTH”, “expiryCode”: 1, “strike”: “ATM”, “drvOptionType”: “CALL”, “requiredData”: [“open”, “high”, “low”, “close”, “volume”], “fromDate”: “2024-07-01”, “toDate”: “2024-07-08”}

I also tried WEEK and MONTH, expiryCode 1, 2 and 3, and securityId as a number and as text. All give the same error.

Please:

  1. Enable Expired Options Data for my account, or tell me which field is wrong.
  2. Confirm if F&O segment activation is required for this API (my profile shows only the Equity segment active).

Client ID: 1114390380

Hi @Davinder_Dixit,

As per the API documentation, the Expired Options Data API allows you to fetch only one day of data per request.

Please modify your fromDate and toDate parameters to cover a single day and try again.

Please let us know if you continue to face any issues.

Attaching the relevant screenshot from the documentation for reference, along with the documentation link below:

Documentation Link : Expired Options Data API

Screenshot 2026-11-04 at 6.01.06 PM

Best,
Kushagra Rohatgi
Product Team