Too many request error

techietrader
techietrader edited September 2017 in Python client
I m calling kite.historical on 9 commodities, it says too many request
today = datetime.date.today()
month_ago = today - datetime.timedelta(days=30)

to_dt=today.strftime('%Y-%m-%d')
from_dt=month_ago.strftime('%Y-%m-%d')
interval='60minute'

data[i] =pd.DataFrame(kite.historical(activeList[i]['instrument_token'] , from_dt , to_dt , interval))
# activeList contains instrument token for 9 commodities with recent expiries
Sign In or Register to comment.