Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    How to get historical expired commodity option chart?

    General Discussion
    3
    5
    11
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      parthiban89 last edited by

      Hi everyone,
      I am new here is there any way I can retrieve the expired commodity option chart? Ex. Last year expired crude option chart for specific CE/PE options?

      Appreciate your help.

      A 1 Reply Last reply Reply Quote 0
      • A
        algo_trading_50 @parthiban89 last edited by

        @parthiban89 Currently API does not provide historical data for expired instruments.

        P 1 Reply Last reply Reply Quote 0
        • P
          parthiban89 @algo_trading_50 last edited by

          @algo_trading_50 hi,
          i saw that we can get expired commodity historical data.

          https://smartapi.angelbroking.com/docs/Historical

          Please correct me if i am wrong

          Historical API
          Historical API provides past data of the indices and instruments. When a successful request is placed, corresponding data is returned. A single API endpoint provides the data for all segments. The exchange parameter in the request body is used to specify the segment whose data is required.

          https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData
          Exchange Constants
          Param Value Description
          exchange NSE NSE Stocks and Indices
          NFO NSE Futures and Options
          BSE BSE Stocks and Indices
          BFO BSE Future and Options
          CDS Currency Derivatives
          MCX Commodities Exchange

          A 1 Reply Last reply Reply Quote 0
          • A
            algo_trading_50 @parthiban89 last edited by

            @parthiban89 Historical data in itself is the past data and not the live data. Here past data doesn't mean expired instruments' data.

            1 Reply Last reply Reply Quote 0
            • M
              memehta last edited by

              Master Scrip updates everyday ,refreshing tokens for older expiries to new ones.

              So, if token 123456 is for SILVER FUTURES JAN2026, post its expiry 123456 is allotted to its next expiry which is SILVER FUTURES FEB2026.

              Hence, you are unable to retrieve historical data for older expiries.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post