Navigation

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

    Max Days in historical data

    Test
    0
    5
    46
    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.
    • N
      nitish.bane last edited by

      Hi Smart Api Team,
      Are there any changes introduced in the max days that can be queried with Historical api?
      a5e6e8b8-2cf3-4af0-8384-c9a9d307eae5-image.png
      I am not able to fetch 100 days data for 5 Min interval and 30 Days data for 1 Min interval. It used to work earlier. Can you please check.

      Thanks.

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

        hi @nitish-bane
        We have not made any changes in Historical API - "/rest/secure/angelbroking/historical/v1/getCandleData"

        Also we can fetch 100 days data for 5 Min interval and 30 Days data for 1 Min interval data using this API . Can you please give us your request structure or curl .

        Thanks

        N N 3 Replies Last reply Reply Quote 0
        • N
          nitish.bane @Moderator_3 last edited by nitish.bane

          @Moderator_3 Please find the curl below
          curl --location 'https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData'
          --header 'X-ClientLocalIP: 192.168.200.129'
          --header 'X-ClientPublicIP;'
          --header 'X-MACAddress;'
          --header 'Content-Type: application/json'
          --header 'Authorization: Bearer Token'
          --header 'X-PrivateKey: 3J9h3Ukp'
          --header 'X-SourceID: WEB'
          --header 'X-UserType: USER'
          --header 'Cookie: TS0179ac75=0167ca9f9b63a06781743099d6697bce61dc9aa8211897f10c1005ebdd27b3c45b539edb25cc338e3493a9a7f806186d58b17e335d'
          --data '{
          "exchange": "NSE",
          "symboltoken": "99926000",
          "interval": "FIVE_MINUTE",
          "fromdate": "2024-07-29 09:15",
          "todate": "2024-09-20 15:30"
          }
          '
          I am querying from 29 july 2024 to 20 sept 2024 for 5 min interval data. But I am getting response date starting from 14th Aug. Please find the snap below
          26635f2c-2716-4eb0-9f07-2d242296cdbe-image.png

          1 Reply Last reply Reply Quote 0
          • N
            NAZI0053 @Moderator_3 last edited by

            @Moderator_3 success

            1 Reply Last reply Reply Quote 0
            • N
              nitish.bane @Moderator_3 last edited by

              @Moderator_3 Can you please update on the issue

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