BankNifty index Historical Data not available
-
Hi @admin,
Currently i am unable to get any response from server for Historical data API when using the below request to fetch Banknifty or Nifty index data.
{ "exchange": "NSE", "symboltoken": "26009", "interval": "ONE_MINUTE", "fromdate": "2023-01-03 09:15", "todate": "2023-01-03 09:30" }
RESOPNSE:
{ "status": true, "message": "SUCCESS", "errorcode": "", "data": null }
I did see many post having the same question, but too old back in 2021. So Just wanted to confirm if we have the historical data for Indices.
Thank you 😊😊
-
Hi @Moderator_2
Thank you for the response.
In the Instrument file, for name == 'BANKNIFTY', there were two rows. One with blank InstrumentType and the other one with 'AMXIDX' as it's value. I was passing the token from the first one. But in documentation or somewhere it should be mentioned that if we want index then which one to consider.
Thanks and Regards,
Aditya -
historicParam={
"exchange": "NSE",
"symboltoken": "26009",
"interval": "ONE_MINUTE",
"fromdate": "2021-02-08 09:00",
"todate": "2021-02-08 09:16"
}THIS IS FOR BANKNIFTY
-
Apologies for delayed response.
Kindly reverify on the token passed. Index token for Banknifty has be pushed as "99926009". We are able retrieve the data for the specified date.Thanks & Regards,
SmartAPI team -
I tried the historical data fetch for BANKNIFTY but I am still not getting a success response.
Please let me know if I am doing something wrong.
-
Hi Amit
I tried using your payload but it didn't seem to work.
Please let me know if I am missing something.
- topic:timeago_earlier,2 months
-
Hi @laskshmi
Apologies for delayed response.
We have started providing Historical data for indices.
Kindly reverify.Thanks & Regards,
SmartAPI team - topic:timeago_earlier,9 months
-
Index Historical Data Works for me
Ref : https://smartapi.angelbroking.com/docs/Historical
use Body as follows:- for Nifty
{
"exchange":"NFO",
"symboltoken":"NIFTY",
"interval":"ONE_HOUR",
"fromdate":"2023-01-01 09:00",
"todate":"2023-03-31 15:31"
}- for BANKNIFTY
{
"exchange":"NFO",
"symboltoken":"BANKNIFTY",
"interval":"ONE_HOUR",
"fromdate":"2023-01-01 09:00",
"todate":"2023-03-31 15:31"
}
-
Try this it worked for me
Thanks-
for NIFTY :
{
"exchange":"NFO",
"symboltoken":"NIFTY",
"interval":"ONE_HOUR",
"fromdate":"2023-01-01 09:00",
"todate":"2023-03-31 15:31"
} -
For Bank Nifty :
{
"exchange":"NFO",
"symboltoken":"BANKNIFTY",
"interval":"ONE_HOUR",
"fromdate":"2023-01-01 09:00",
"todate":"2023-03-31 15:31"
}
-