Not able to get historical data prior to Apri 2021


  • Dear @admin , @admin123 , I'm not able to fetch historical data prior to April 2021 whereas in document , it is mentioned that data of 2000 days can be fetched in single request. Please check....


  • Hi @A584622

    Apologies for delayed response.
    If the needed data is of equity, Kindly share us the API request params and response if the issue still occurs to help you further on this

    Thanks & Regards,
    SmartAPI team


  • @A584622

            timestamp       O       H       L       C         V
    

    0 2021-03-26 00:00 360.00 362.00 354.55 357.20 40683793
    1 2021-03-30 00:00 360.10 364.30 356.30 360.10 39393544
    2 2021-03-31 00:00 360.30 367.85 357.95 364.30 38622666
    3 2021-04-01 00:00 367.70 371.90 363.10 370.95 31850985
    4 2021-04-05 00:00 367.50 369.20 349.05 353.55 51729378
    .. ... ... ... ... ... ...
    495 2023-03-24 00:00 514.50 514.95 503.45 505.35 14414513
    496 2023-03-27 00:00 507.00 514.15 501.55 510.15 15672015
    497 2023-03-28 00:00 511.45 511.75 503.85 508.10 15833233
    498 2023-03-29 00:00 509.00 518.00 506.30 516.50 24186741
    499 2023-03-31 00:00 520.65 524.90 519.35 523.00 17353339

    [500 rows x 6 columns]


  • @A584622 Maximum It is fetching 500 candles only as i checked now .

    Both Futures or Equity it is limiting to 500 only.


  • @A584622 u are trying to fetch more then ten years of data in a single attempt . try to fetch 5 years , then next 5 years so on ...

    it gives candle data of day . That is one candle per day only.