How to download historical option data which has expired.

gbdeepak
gbdeepak edited July 2023 in Python client
Hi,
I am trying to download historical option data whose contracts are not valid right now.
I am using kite.historical_data() api, I provide instrument_token which was valid at that time and period I want the data.
I am getting
kiteconnect.exceptions.InputException: contract not found
error

Can someone please let me know how it is done.
Thanks.
Tagged:
  • sujith
    We only provide day candle data for expired futures instruments.
  • gbdeepak
    gbdeepak edited July 2023
    Thanks for reply. you mean expired option data is not provided. right?
  • sujith
    Yes, Kite Connect doesn't offer expired options candle data.
  • Hirak
    How to download historical option data which has expired.
  • rakeshr
    How to download historical option data which has expired.
    As, stated by Sujith above we provide continuous day interval candle data for expired futures contracts, not for options contracts. Go through the documentation here.
This discussion has been closed.