Getting no data for Historical API
-
Hi,
I'm using the python SDK for getting historical data, but i'm not receiving any data from the API.
Input:
{
"exchange": "NSE",
"symboltoken": "3045",
"interval": "ONE_DAY",
"fromdate": "2021-08-17 09:00",
"todate": "2021-02-22 09:16"
}Output:
{
"data": null,
"errorcode": "",
"message": "SUCCESS",
"status": true
}Could you please help identify and solve the issue.
Thanks,
Harshil -
Hi @Harshil Please find the req and response below:
-
@admin As i have explained above, i'm not getting historical data even when changing date parameters as suggested - and i'm using the sample code provided on smartapi-python. Request you to please help with the same.
Also, note - the reply, quote buttons are not working on chrome, you might want to fix that.
-
Hi @admin, I am also getting same error, can you please help us with sample working code?
-
@admin The request above was for getting daily history.
Not getting data with different dates as well:
{
"exchange": "NSE",
"symboltoke ": "3045",
"interval": "FIVE_MINUTE",
"fromdate": "2021-08-29 09:30",
"todate": "2021-08-29 12:30"
}Returns the se output as above, please help.
-
HI @Harshil Please check your from date and to date parameters.