Navigation

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

    Historical API data incorrect data

    Test
    0
    4
    39
    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
      avinash256shinde last edited by

      I am using following API to get Historical data with ONE MINUTE interval

      here is request body

      {
           "exchange": "NSE",
           "symboltoken": "21401",
           "interval": "ONE_MINUTE",
           "fromdate": "2024-07-01 12:00",
           "todate": "2024-07-17 16:00"
      }
      

      17 Days data, API is returning response, but It's incorrect response or something not properly mentioned in Document

      I have received following response from API (truncated response)

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": [
              [
                  "2024-07-01T12:00:00+05:30",
                  7.11,
                  7.11,
                  7.11,
                  7.11,
                  1340
              ],
              [
                  "2024-07-01T12:01:00+05:30",
                  7.1,
                  7.11,
                  7.1,
                  7.11,
                  807
              ],
              [
                  "2024-07-01T12:02:00+05:30",
                  7.1,
                  7.11,
                  7.1,
                  7.11,
                  2241
              ],
              [
                   "2024-07-16T15:27:00+05:30",
                    7.33,
                          7.33,
                          7.32,
                          7.33,
                          7380
                      ],
                      [
                          "2024-07-16T15:28:00+05:30",
                          7.33,
                          7.33,
                          7.32,
                          7.32,
                          10203
                      ],
                      [
                          "2024-07-16T15:29:00+05:30",
                          7.33,
                          7.33,
                          7.32,
                          7.33,
                          11953
                      ]
      

      as per response

      • you can see I am getting candle data for midnight 00:00:00+05:30 , how can that be? shouldn't data be from market hour and start with 09:15:00+05:30

      • I have given todate value 2024-07-17 16:00 but I am not receiving any data fro that.

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

        Hi @avinash256shinde The timing you have provided for the request is between 12:00 PM and 16:00 PM in the 24-hour format. If you mean midnight, it starts at 00:00. Please check and provide your feedback.

        Regards,
        SmartAPI Team.

        A 1 Reply Last reply Reply Quote 0
        • A
          avinash256shinde @Moderator_3 last edited by

          @Moderator_3 got it my bad, very sorry for that,

          but why there is no data for 17-07-2024 is there limit like, data will be available only after T+1 day

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

            Hi @avinash256shinde on 17-07-2024 will be an market holiday due to Moharram that's why there is no data.

            Regards,
            SmartAPI Team.

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