ProjectsTradeGrid — Automated Options Trading

Stackedtensordeployed
TradeGrid — Automated Options Trading
A research + execution system for 9 multi-leg options strategies — straddles, strangles, iron condors, butterflies — with a Black-Scholes backtesting engine and live integrations to Indian brokers (Zerodha, Upstox, Angel, Fyers).
Sole author
Aug 2025 – Present
What I built
- 9 multi-leg strategies dispatched through a factory — no if/elif chain
- Backtesting engine with Black-Scholes synthetic data + yfinance loader
- Multi-broker factory: Zerodha, Upstox, Angel, Fyers
- Atomic multi-leg entry/exit with partial-fill rollback
- Market-hours CI/CD guard — blocks deploys 09:15–15:30 IST trading hours
- 11 Alembic migrations with careful enum handling
Hard problems
- Avoiding partial-fill footguns — treating each strategy as a transactional unit
- Backtesting fidelity vs. simulation speed (Black-Scholes synthetic vs. real tape)
- Zerodha's auth / token refresh quirks and rate-limit semantics
Tech stack
PythonFastAPISQLAlchemy (async)PostgreSQLCeleryRedisAlembicpytestDockerTerraform
Tags
OptionsBacktestingMulti-brokerFinTechAutomation
Source code is not in the public domain. Happy to walk through architecture or specific modules on a call — get in touch.