DH-905 on every /v2/charts/rolling option request (Expired Options Data), client ID 1112428217

My Data API works: POST /v2/charts/historical returns data on the same token. But every POST /v2/charts/rollingoption returns HTTP 400

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

This happens for NIFTY (NSE_FNO, securityId 13) and SENSEX (BSE_FNO, 51), WEEK and MONTH, dates inside the last 5 years, with interval as a number or text, and with or without dhanClientId. It also happens for your documented example with recent dates, and for the same call made through your official dhanhq Python SDK (expired_options_data).

The attached self_check.csv has every request body and your responses. Please enable Expired Options Data for my account, or tell me what’s wrong with the request.

Hey @JP_Misra

Welcome to Madefortrade!

We’ve made improvements to the handling and processing of expired options data to ensure more reliable data retrieval and efficient request processing. Please note that you can now fetch up to 1 day of data per API request.

To retrieve data for multiple days, please iterate over the required date range and make a separate API request for each day, while adhering to the applicable rate limits.

Kindly regenerate your access token and retry the request.