Nifty Futures historical data
-
The https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json does not provide token numbers for past or historical contracts of Nifty Futures. How can I retrieve Nifty futures historical data without knowing what token to use, which is mandatory field for https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData api and has this request format: {
"exchange": "NSE",
"symboltoken": "99926000",
"interval": "ONE_HOUR",
"fromdate": "2023-09-06 11:15",
"todate": "2023-09-06 12:00"
} -
Scrip master will provide us only the latest symbol which is available for trading.
-
@admin thanks. any way to get past contract data for Nifty futures on 1 min or 5 min or 15 mn timeframes?
-
Yes you can use the same getCandleData API in request pass NFO for exchange param. Refer below documentation to get to know more about Historical information.
-
@admin said in Nifty Futures historical data:
es you can use the same getCandleData API in request pass NFO for exchange param.
the historical data api can provide only data of live F&O contracts, not the expired ones. So this is very limited data for futures past data. The request format requires symboltoken. The token comes from https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json which provides token only for live F&O. My original question remain remain unasnwered: How to get historical data of Nifty Futures?
{
"exchange": "NFO",
"symboltoken": "46823",
"interval": "THREE_MINUTE",
"fromdate": "2024-06-07 09:15",
"todate": "2024-06-07 15:30"
}