It looks like you're new here. If you want to get involved, click one of these buttons!
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.
Could you also add in this thread what is the history available in your DB for each of the internal, lets say:
day: Available since 2008
60min: Available since 2016 etc.
Just similar to the above table would help a lot, so this info/document you also could use it later to point to similar questions where both info available in one single thread.
Everything is available here.
Historical data:
Couldn't fetch historical data (insufficient permission) : https://kite.trade/forum/discussion/7658/historical-data#latest
Downloading Historical data: https://kite.trade/forum/discussion/comment/15933/#Comment_15933
Historical data availability: https://kite.trade/forum/discussion/3490/query-on-availability-of-historical-minute-candle-data-and-corporate-actions
Regarding historical data weekly and monthly data, storage structure and holdiay handling: https://kite.trade/forum/discussion/7585/getting-weekly-and-monthly-data-ohlc-candles-by-using-historical-data-api
Limitations for fetching historical data for the all candle intervals: https://kite.trade/forum/discussion/7756/python-client-is-failing-to-get-continuous-historical-data-for-instrument#latest
Queries regarding live fetching/polling of Historical Data APIs : https://kite.trade/forum/discussion/3828/last-minute-historical-data
Intraday candle does not match with the candle data that is fetched for the full day : https://kite.trade/forum/discussion/7798/historical-data-candles-inaccurate-for-small-periods#latest
minute : Upto 3 years
3minute : Upto 3 years
5minute : Upto 3 years
10minute : Upto 3 years
15minute : Upto 3 years
30minute : Upto 3 years
60minute : Upto 3 years
day : Since 1990 for some NSE instruments, for BSE since Jan 2008
I hope others who are looking for this info helps them, no thanks to the support and wonderful documentation/FAQs!!
We don't provide support for Kite Connect. This is a community-driven platform where we help fellow Kite Connect developers. We are all developers here just like you. We take out our time while working on our projects to help the community.
Your query is answered here.