It looks like you're new here. If you want to get involved, click one of these buttons!
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 messageinterval exceeds max limit: 60 days