Historical Data for Future Symbol Not available

PHIone
NIFTY22APRFUT : 8980226 , TCS22APRFUT : 17068034 etc
List<Historical> historical = kite.GetHistoricalData(
InstrumentToken: instrument.InstrumentToken.ToString(),
FromDate: new DateTime(2022, 01, 04, 09, 15, 0), //new DateTime(fromdt.Value.Year, fromdt.Value.Month, fromdt.Value.Day, fromdt.Value.Hour, fromdt.Value.Minute, 0), // 2016-01-01 12:50:00 AM
ToDate: new DateTime(2022, 01, 04, 15, 29, 0), // 2016-01-01 01:10:00 PM
Interval: interval,
Continuous: false, OI: true);
  • SRIJAN
    SRIJAN edited April 2022
    April future contract started trading from 28 Jan. You have to use pass continuous=True for expired future contracts data. Also, continuous data is only available in daily candles.
  • PHIone
    We want OHLC for Current Contract......NIFTY22APRFUT was present in Todays Instrument List with Token 8980226. This means this is active symbol...We tried to get OHLC data after market hrs... But no data available for the Intraday
  • SRIJAN
    I don't get what you are saying. Are you trying to fetch today's intraday historical data??
  • PHIone
    Yes....
  • SRIJAN
    SRIJAN edited April 2022
    You must be doing something wrong. I am getting today's intraday data. Paste your code.
  • PHIone
    Done... Something wrong with Date Format Parameter
This discussion has been closed.