Complete historical data not available


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


  • 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


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


  • 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


  • 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