Skip to content

Add Zerodha Kite Connect broker support for Indian equities #1191

Description

@ashutoshsinghpr7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions