how to fetch historical data for expired instruments

raja1sttarde edited March 2018 in PHP client

from the documentation my understanding is that i need $instrument_token = (todays instrument list token value for eg. Nifty Call expiry mar 28, 2018 and strike 10000) to get historical data for this contract.

how do i get historical data for expired contracts? for eg $instrument_token = (Nifty Call expiry jan 25, 2018 and strike 10000)

thanks for your help!
  • sujith
    You need to give current month instrument's token and set the continuous flag as 1 and pass the date for which you want to fetch data.
    We only have data for future instruments and not for options and data is in day interval only for expired instruments.
    You can check out documentation for more information.
This discussion has been closed.