Input Exception Message in Dhan API

Hi @Hardik ,

I am facing following error again i have attached the exact payload which i am using. The same payload worked yesterday but its not working today. It is really very painful to see such error messages after taking data subscription and top of that question raise is Dhan a capable platform for algo traders?

{
    “securityId”: “17971”,
    “exchangeSegment”: “NSE_EQ”,
    “instrument”: “EQUITY”,
    “expiryCode”: 0,
    “oi”: False,
    “fromDate”: “2025-08-24”,
    “toDate”: “2025-09-24”

}
headers = {
    “access-token”: “***”,
    “Content-Type”: “application/json”,
    “Accept”: “application/json”

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

Hey @haricharan ,

As checked the same request structure is working fine now, we request you to kindly re run the same and check.

Thanks for the response @Shrutika_Poojari , but why are we facing this intermittent issues this truly brings down the confidence

Hey @haricharan ,

We request you to please help us with the registered details over apihelp@dhan.co so we can assist you over google meet.

@Shrutika_Poojari @haricharan this error occurs when the api doesn’t have the historic data, I too have faced the same problem if you want to test just try fetching after 12:00 Am of yesterday’s data you will get the same error. But you if you fetch in morning before the market opens you will get the result.