Navigation

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

    Historical Data API not sending data for requested number of days

    NodeJS SDK
    0
    6
    76
    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.
    • L
      laskshmi last edited by

      @admin
      In the API documentation, it says that Historical data of 30 days can be request in a single hit with ONE_MINUTE interval.
      af80d265-a8dd-4dfb-a4fb-98966e9476d0-image.png

      But in actual case, I am receiving a maximum of 500 candle stick data irrespective of the interval. i.e If i request data of Jan 2 9:15 to to Jan 17 09:15 with ONE_MINUTE, I dont receive the data for requested days, instead receiving exactly 500 arrays which is approximately from Jan 13(Driday) to Jan 17 (Tuesday). So instead of 30 days i receive 3 days candle stick data.

      Request:
      8d1b5d05-d622-4866-a346-9b584dc7bd3f-image.png

      Start of Response:
      d56378b3-3f34-4d76-9df2-5777833c1f44-image.png

      End of Response:
      82fcf952-ddea-4744-a77b-2afb65226c12-image.png

      Can you let me know why I am not able to get the data for requested days ?

      L F 2 Replies Last reply Reply Quote 1
      • L
        laskshmi @laskshmi last edited by

        @admin
        Any update on this??

        1 Reply Last reply Reply Quote 1
        • L
          laskshmi last edited by

          @laskshmi said in Historical Data API not sending data for requested number of days:

          @admin
          Any update on this??

          @admin any update, iTs been 10 days

          1 Reply Last reply Reply Quote 1
          • F
            falconTrader @laskshmi last edited by

            @laskshmi said in Historical Data API not sending data for requested number of days:

            @admin
            In the API documentation, it says that Historical data of 30 days can be request in a single hit with ONE_MINUTE interval.
            af80d265-a8dd-4dfb-a4fb-98966e9476d0-image.png

            But in actual case, I am receiving a maximum of 500 candle stick data irrespective of the interval. i.e If i request data of Jan 2 9:15 to to Jan 17 09:15 with ONE_MINUTE, I dont receive the data for requested days, instead receiving exactly 500 arrays which is approximately from Jan 13(Driday) to Jan 17 (Tuesday). So instead of 30 days i receive 3 days candle stick data.

            Request:
            8d1b5d05-d622-4866-a346-9b584dc7bd3f-image.png

            Start of Response:
            d56378b3-3f34-4d76-9df2-5777833c1f44-image.png

            End of Response:
            82fcf952-ddea-4744-a77b-2afb65226c12-image.png

            Can you let me know why I am not able to get the data for requested days ?

            @admin , are you going to respond to our queries.
            I tried a request for ONE_DAY data, but like here, I only got 500 days data instead of more than 5 years data.

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

              Hi @falconTrader @laskshmi

              We apologize for the discrepancy in the API documentation and the actual data received. Our API is currently limited to returning a maximum of 500 records per request. We have update the members on this post -
              https://smartapi.angelbroking.com/topic/3380/issue-fetching-historical-data/12?_=1675141920884

              F 1 Reply Last reply Reply Quote 1
              • F
                falconTrader @admin last edited by

                @admin Thank you for the response.
                Appreciate for making things clear.
                This will help me to improvise my algorithm and make necessary changes to get the desired result.

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