I am trying to extract 2 years of day candles for Segment ACC which has Instrument token 5633. But it throws the error "kiteconnect.exceptions.InputException: invalid segment for continuous data". When i change continuous data to 0, i get single day's data. But i am looking to pull 2 years in one go. Do i have to loop through each date and get candles induviudally ?
You don't need to use continuous data for equities. It's only to get expired futures day candles. For equities you can ignore continuous parameter. For day candles,the maximum interval is 2000 days.
somehow i am getting this error for Weekly Futures of SENSEX as well e.g. kc.historical_data(SENSEX24816FUT (218478597), BFO, day, 2024-05-10 00:00:00+05:30, 2024-08-14 23:59:00+05:30, True, True): InputException invalid segment for continuous data, raising error.
So continuous does not apply to all futures but only monthly futures? Weekly futures are excluded?
So continuous does not apply to all futures but only monthly futures? Weekly futures are excluded?