Navigation

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

    Complete historical data not available

    General Discussion
    0
    5
    28
    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
      Aditya VK last edited by

      When I try to get historical data for 25 days with an interval of one day, it doesn't give me all 25 days of data. I only get around 17-19 days of data. Is it expected or should I be getting data for all 25 days? By the way, I'm using Python SDK.

      M 1 Reply Last reply Reply Quote 1
      • M
        Moderator_2 @Aditya VK last edited by

        Hi @Aditya-VK

        Apologies for delayed response.
        Historical Data will be pushing the data points only for the Market days. Kindly share us API request with the stock details, will confirm the same from our end.

        Thanks & Regards,
        SmartAPI team

        A 1 Reply Last reply Reply Quote 0
        • A
          Aditya VK last edited by

          historicParam = {
                  "exchange": "NSE",
                  "symboltoken": "9480",
                  "interval": "ONE_MINUTE",
                  "fromdate": "2024-01-05 09:00",
                  "todate": "2024-01-05 21:00"
          }
          

          For these parameters, since it's 12hrs duration and the interval is 1 minute, I was expecting around 12 * 60 = 720 data points. But I got only 375 data points

          1 Reply Last reply Reply Quote 0
          • A
            Aditya VK @Moderator_2 last edited by

            @Moderator_2

            historicParam = {
                    "exchange": "NSE",
                    "symboltoken": "9480",
                    "interval": "ONE_MINUTE",
                    "fromdate": "2024-01-05 09:00",
                    "todate": "2024-01-05 21:00"
            }
            

            For these parameters, since it's 12hrs duration and the interval is 1 minute, I was expecting around 12 * 60 = 720 data points. But I got only 375 data points

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

              Hi @Aditya-VK

              The data points which has trade happened/price movement for its particular minute, those alone can be fetched from historical API. NSE market ends at 03:30pm, Kindly reverify with proper timing and let us know if any issue occurs.

              Thanks & Regards,
              SmartAPI team

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