Dhan Historical API return wrong date frame

API End Point:
https://api.dhan.co/charts/historical
Body:
{
“symbol”: “TCS”,
“exchangeSegment”:“NSE_EQ”,
“instrument”: “EQUITY”,
“expiryCode”: 0,
“fromDate”: “2024-04-01”,
“toDate”: “2024-04-30”
}

Output
“start_Time”: [
1396377000,
1396463400,
1396549800,

Issue::
Try to convert this date. instead 2024-04-01 it’s returning 2014-04-01

Hello @Vetrivel_Dhandapani

Welcome to Dhan Community!

Yes, this is because if you look into documentation, time stamp that we send is in Julian format instead of EPOCH. You can use the converter mentioned in the documentation to convert it to IST.

Okay. @Hardik But data also wrong. Can you verify last record 30-Apr-2024. Open and high all records mismatch with actual. Did you cross verified?

Hello @Vetrivel_Dhandapani

Yes, I just checked and the data is absolutely correct. Do note that fromDate is inclusive whereas toDate is not. Make sure you are passing the right parameters here for fetching data.