Historical API data incorrect data


  • 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.


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

    Regards,
    SmartAPI Team.


  • @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


  • 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.