Python client not able read historical data

Mohindharan
Python client is not able to read historical data, if i download more than one d
from_date=datetime.today()- timedelta(days=60)
to_date=datetime.today()
from_date_str= from_date.strftime("%Y-%m-%d")
to_date_str= to_date.strftime("%Y-%m-%d")
historical_data = kite.historical_data(instrument_token=instrument_token, from_date=from_date_str, to_date=to_date_str, interval='minute')
historical_data = pd.DataFrame(historical_data)
error message
interval exceeds max limit: 60 days
  • sujith
    As the error message suggests, you may reduce the interval between two input dates and try again.
Sign In or Register to comment.