Python Client is failing to get CONTINUOUS historical data for instrument

naagdev
naagdev edited May 2020 in Python client
I am trying to get historical data for 100 days using the api call - kite.historical_data but I get this error:
kiteconnect.exceptions.DataException: Unknown Content-Type (text/html) with response: (<html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>
)
using the command:
to_date = datetime(2020,5,21,16,0)
from_date = to_date-timedelta(days=100)
kite.historical_data(13430274, from_date=from_date, to_date=to_date, interval='15minute', continuous=True, oi=False)
This works when my from_date and to_date are 80 days apart or less. But doesn't work for 100 days.

Can you please check?
This discussion has been closed.