Navigation

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

    Nifty Futures historical data

    Python SDK
    2
    5
    10
    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.
    • A
      abhay15.akshukla last edited by

      The https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json does not provide token numbers for past or historical contracts of Nifty Futures. How can I retrieve Nifty futures historical data without knowing what token to use, which is mandatory field for https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData api and has this request format: {
      "exchange": "NSE",
      "symboltoken": "99926000",
      "interval": "ONE_HOUR",
      "fromdate": "2023-09-06 11:15",
      "todate": "2023-09-06 12:00"
      }

      1 Reply Last reply Reply Quote 0
      • A
        admin last edited by

        Hi @abhay15-akshukla

        Scrip master will provide us only the latest symbol which is available for trading.

        A 1 Reply Last reply Reply Quote 0
        • A
          abhay15.akshukla @admin last edited by

          @admin thanks. any way to get past contract data for Nifty futures on 1 min or 5 min or 15 mn timeframes?

          1 Reply Last reply Reply Quote 0
          • A
            admin last edited by

            Hi @abhay15-akshukla

            Yes you can use the same getCandleData API in request pass NFO for exchange param. Refer below documentation to get to know more about Historical information.

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

            A 1 Reply Last reply Reply Quote 0
            • A
              abhay15.akshukla @admin last edited by

              @admin said in Nifty Futures historical data:

              es you can use the same getCandleData API in request pass NFO for exchange param.

              the historical data api can provide only data of live F&O contracts, not the expired ones. So this is very limited data for futures past data. The request format requires symboltoken. The token comes from https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json which provides token only for live F&O. My original question remain remain unasnwered: How to get historical data of Nifty Futures?
              {
              "exchange": "NFO",
              "symboltoken": "46823",
              "interval": "THREE_MINUTE",
              "fromdate": "2024-06-07 09:15",
              "todate": "2024-06-07 15:30"
              }

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