Feature request: Zerodha Kite Connect support
Problem: For Indian equities, the india_broker data bridge currently only supports Shoonya (Finvasia) and Dhan. Zerodha is the largest Indian retail broker and many users (including the kite-trader project) hold their historical OHLCV in Kite Connect. There is currently no way to back the india_equity engine with Kite data, nor any live Kite integration.
Proposed addition:
- A new connector at
agent/src/trading/connectors/zerodha/ implementing the read path (get_historical_bars) using kiteconnect (PyPI), mapping the project interval tokens (1D, 1m, etc.) to Kite's from_date/to_date + interval API.
- A branch in
agent/backtest/loaders/india_broker_loader.py's _resolve_broker() to prefer/accept zerodha alongside shoonya/dhan.
- Symbol mapping: project
RELIANCE.NS / 500325.BO → Kite exchange=NSE/BSE, tradingsymbol=RELIANCE (token-based fetch also acceptable).
- Note: Kite historical API is capped at 2000 days/request and bars are midnight-IST dated, so the loader must paginate and normalize the date index like the existing connectors do.
This is an opt-in, requires_auth source (Kite needs an access token), so it will not affect CI or unconfigured runs.
Happy to contribute a PR if the maintainers are open to it.
Feature request: Zerodha Kite Connect support
Problem: For Indian equities, the
india_brokerdata bridge currently only supports Shoonya (Finvasia) and Dhan. Zerodha is the largest Indian retail broker and many users (including the kite-trader project) hold their historical OHLCV in Kite Connect. There is currently no way to back theindia_equityengine with Kite data, nor any live Kite integration.Proposed addition:
agent/src/trading/connectors/zerodha/implementing the read path (get_historical_bars) usingkiteconnect(PyPI), mapping the project interval tokens (1D,1m, etc.) to Kite'sfrom_date/to_date+intervalAPI.agent/backtest/loaders/india_broker_loader.py's_resolve_broker()to prefer/acceptzerodhaalongside shoonya/dhan.RELIANCE.NS/500325.BO→ Kiteexchange=NSE/BSE,tradingsymbol=RELIANCE(token-based fetch also acceptable).This is an opt-in,
requires_authsource (Kite needs an access token), so it will not affect CI or unconfigured runs.Happy to contribute a PR if the maintainers are open to it.