How many years of historical data we get for Nifty and stocks


  • To test my strategy , data is really important to test how strong and reliable my strategy is.
    I tested historical APIs for TATAMOTORS and NIFTY.
    For NIFTY, it doesn't provide before 2015( means last 8 years) and TATAMOTORS before 2017(means last 6 years).
    Can you please confirm this ?
    Is there a way that I can get historical data for them for atleast last 10 years for NIFTY and popular stocks like TATAMOTORS ?


  • Hello @awdesh-bhatti

    Please refer the below link to get the supported intervals
    https://smartapi.angelbroking.com/docs/Historical

    Regards,
    SmartAPI Team


  • Is it possible to get 1 Minute historical data of NIFTY of last 10 years. If yes, please share the code or guide us.


  • @Moderator_1 said in How many years of historical data we get for Nifty and stocks:

    Below is the extent upto which we have Historical data available :

    we are trying to fetch 1 minute data of Nifty. But the last time which we are getting data is 2021-12-30 09:37:00+05:30

    we want to download data of the last 10 years. is it possible.


  • @Moderator_1 : For NSE equity I can query 15 min candle since 2016-10-03(3rd October, 2016) and not before that.
    By intra-day you mean, 5 min , 15 min candle . correct ????
    If yes, the limits are quite close to what you stated above (I tested on NIFTY and tata motors(equity).
    By interday you mean, 1 Day candle since 1990-01-01 can queried from API?

    It is super-important for my algo trading strategy at 15min, 5 min candle for at least for last 10 years. Can you provide such API ?


  • Hello @coolankurmahe,

    Below is the extent upto which we have Historical data available :

     NSE Equity
    
            intraday: 2016-01-01
    
            interday: 1990-01-01
    
        NSE Indices
    
            intraday: 2015-01-01
    
            interday: 1990-07-06
    
        NSE FNO
    
            intraday: 2016-04-01
    
            interday: 2000-06-12
    
        NSE Currency
    
            intraday: 2016-01-01
    
            interday: 2008-09-01
    
        BSE Equity
    
            intraday:  2015-01-01
    
            interday: 1990-01-01
    
        BSE Indices
    
            intraday: 2022-09-15
    
            interday: 1990-02-01
    
        BSE FNO
    
            intraday: 2023-09-11
    
            interday: 2023-05-15
    
        MCX
    
            intraday: 2016-04-01
    
            interday: 2005-02-09
    
        NCDEX
    
            intraday: 2022-12-26
    
            interday: 2004-04-13