CRUDE OIL FUT Historical - 5 min

deepakeight
Hi

Can I know how far back can I get the historical data for 5 min candle for CRUDE OIL FUT?

Also do I need to know the monthly contract code for each month to pull this data? If yes, is there a way to find out the contract codes?
  • SRIJAN
    SRIJAN edited May 2022
    You can get historical data for any contract from the time the contract was launched.

    CRUDE OIL Futures have an expiry date 6 months after launch. So,for current month contract,you can get data upto 6 months .

    Yes,you will need instrument token of the contract for which you want to fetch historical data.

    You can get list of all the instruments available for trading from the instruments API.

    https://kite.trade/docs/connect/v3/market-quotes/#instruments
  • deepakeight
    Thank you very much for the quick response.
This discussion has been closed.