Permission to store Kite Connect historical data locally for personal backtesting

DakshinaMurthy
Hello Zerodha Team,

I have an active Kite Connect API subscription and am developing a private, Python-based backtesting application for my personal research.

My application is intended to download historical OHLC data for NIFTY indices, NIFTY options and, eventually, NSE stocks. The downloaded data would be stored in a local database on my personal computer, allowing me to run historical backtests offline without repeatedly requesting the same data through the API.

I would also like to automatically download newly completed candles after each trading session and incrementally update my local historical database.

I understand that **Section 4(b) of the Kite Connect Terms places restrictions on permanently storing API data and building databases**, unless expressly permitted.

Could the Zerodha team please clarify the following?

1. Is downloading and permanently storing historical OHLC data for **personal, non-commercial backtesting** permitted?
2. Can I automatically download new candles after each trading session and append them to my private local database?
3. Is storing instrument-master data, historical contract identifiers and expired-options data collected while contracts were active permitted?
4. Can I maintain local backups and immutable dataset versions for reproducible backtests?
5. Am I permitted to retain and use previously downloaded data after my Kite Connect API subscription expires?
6. If permanent local storage is restricted, is there an approved licensing arrangement or another permitted method for this use case?

**The application is strictly for my own research.** I will not redistribute, resell, publish or provide access to the market data to any third party. The application will not place live orders.

I would appreciate an official clarification regarding the applicable usage and retention permissions before enabling automated data collection.

Thank you.
  • salim_chisty
    You may write the above concern to [email protected].
  • VipulK
    For personal use, yes you can download the data and that is actually recommended. For options contract that have expired, the API doesn't return results so saving it locally is the only solution. You can't sell this data or use it for commercial purposes, for that you'll have to get a licence from NSE. The data technically belongs to NSE, not brokers.

    The master scrip list is definitely supposed to be stored locally as noted in the documentation.
    "The instrument list API returns large amounts of data. It's best to request it once a day (ideally at around 08:30 AM) and store in a database at your end." Source
Sign In or Register to comment.