Code you can read, run and change
Broker connectors, a backtest harness, risk modules and reference strategies — the plumbing we got tired of rewriting. Full source, no obfuscation, no licence server. Sold as development tooling, not as an income product.
Broker API connector (Python)
Production-grade REST + WebSocket client with re-auth, reconnect and idempotent orders.
- Full source, no obfuscation
- Token refresh and session recovery
- WebSocket reconnect with single-socket teardown
- Quote staleness detection and callbacks
Event-driven backtest harness
One strategy class, two modes: replay history or trade live, with the full Indian cost stack built in.
- Event-driven engine with bar and tick replay
- Indian cost model: brokerage, STT, exchange, GST, stamp, impact
- Walk-forward runner and fold reporting
- Slippage models you can calibrate from your own fills
Reference strategy: opening range breakout
A complete, readable intraday reference implementation — structure to learn from, not a money machine.
- Full strategy source with comments
- Session, holiday and square-off handling
- Risk caps, stop logic and flat-by-time rule
- Decision log including no-trade days
Risk guard and kill-switch module
Loss caps, order-rate limits, position ceilings and a kill switch that actually stops everything.
- Daily and per-trade loss caps
- Order-rate and position ceilings
- Consecutive broker-error circuit breaker
- Flat-by-time enforcement
Market data layer with coverage ledger
Incremental historical downloads, gap detection and quality checks — no more full re-download at startup.
- Incremental backfill with a persisted coverage ledger
- Rate-limit aware downloader with resume
- OHLC storage in Parquet or SQLite
- Gap, duplicate and stale-sequence detection
Read this before buying
Every item is developer tooling or reference code, supplied as-is for your own testing and development. Nothing here is investment advice, a recommendation, or a promise of profit. Sample strategies exist to demonstrate structure and mechanics — their historical results are simulated, prepared with hindsight, and are not indicative of future results. You are responsible for testing on your own data, for your own risk limits, and for registering any order-placing algorithm with your broker and the exchange as required under the SEBI algo framework. Digital goods are non-refundable once the download link is issued — see the refund policy.