I’m getting error message: Error: 500 {“errorType”:“Data_Error”,“errorCode”:“DH-907”,“errorMessage”:“System is unable to fetch data due to incorrect parameters or no data present”}
Can someone please point out. I’m able to get the historical data for equity though. Thanks.
Looks like you have kept fromDate and toDate as the same. If you look into the documentation, it requires atleast 1 day gap, as the toDate is non-inclusive.
Requesting historical data with parameters:
FINNIFTY security_id: 27
exchange_segment: IDX_I
instrument_type: INDEX
expiry_code: 0
from_date: 2024-11-06
to_date: 2024-11-07
Response: {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-907’, ‘error_type’: ‘Data_Error’, ‘error_message’: ‘System is unable to fetch data due to incorrect parameters or no data present’}, ‘data’: {‘errorType’: ‘Data_Error’, ‘errorCode’: ‘DH-907’, ‘errorMessage’: ‘System is unable to fetch data due to incorrect parameters or no data present’}}
Can you check if you are using Historical Data in 1 day timeframe or intraday minute data. Also, try increasing the date range and let me know if you are still facing this issue.
“I need the historical data for the last 3 days. I’ve been trying to access it since yesterday, but I’m still encountering the same issue. Could you please verify on your end if you’re using the historical data in the 1-day timeframe? I am facing the problem specifically with Finnifty and security_id ‘27’.”
From Date: 2024-11-03
To Date: 2024-11-18
Payload: {‘securityId’: ‘27’, ‘exchangeSegment’: ‘IDX_I’, ‘instrument’: ‘INDEX’, ‘fromDate’: ‘2024-11-03’, ‘toDate’: ‘2024-11-18’}
Full Response Data: {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-907’, ‘error_type’: ‘Data_Error’, ‘error_message’: ‘System is unable to fetch data due to incorrect parameters or no data present’}, ‘data’: {‘errorType’: ‘Data_Error’, ‘errorCode’: ‘DH-907’, ‘errorMessage’: ‘System is unable to fetch data due to incorrect parameters or no data present’}}
High: None
Low: None
Open: None
Close: None