historical data

resilientrohit98
kiteconnect.exceptions.InputException: interval exceeds limit: 60 days
This exceptions is raised before the day limit was not set you people are charging us 2000 per month atleast give 5 year limit .
  • resilientrohit98
    resilientrohit98 edited November 2019
    DEBUG:urllib3.connectionpool:https://api.kite.trade "GET /instruments/histor
    ical/738561/minute?instrument_token=738561&from=2019-07-20&to=2019-11-08&interva
    l=minute&continuous=0 HTTP/1.1" 400 104
    Traceback (most recent call last):
    File "renko.py", line 500, in
    start()
    File "renko.py", line 74, in start
    records = get_historical_data(instrument_token)
    File "renko.py", line 69, in get_historical_data
    return kite.historical_data(instrument_token, from_date, to_date, interval)
    File "f:\newproj\venv\lib\site-packages\kiteconnect-3.7.7-py3.7.egg\kiteconnec
    t\connect.py", line 608, in historical_data
    File "f:\newproj\venv\lib\site-packages\kiteconnect-3.7.7-py3.7.egg\kiteconnec
    t\connect.py", line 697, in _get
    File "f:\newproj\venv\lib\site-packages\kiteconnect-3.7.7-py3.7.egg\kiteconnec
    t\connect.py", line 766, in _request
    kiteconnect.exceptions.InputException: interval exceeds limit: 60 days



    full error
  • rakeshr
    @resilientrohit98
    kiteconnect.exceptions.InputException: interval exceeds limit: 60 days
    This exceptions is raised before the day limit was not set you people are charging us 2000 per month atleast give 5 year limit .
    We do provide minute data for RELIANCE(738561) from 2015, but you will be able to query max 60 days minute data in single request. So,if you are looking to fetch more than 60 days data then you need to make multiple requests and fetch it in loop with batch of max 60 days with some delays each subsequent request .
Sign In or Register to comment.