Repository navigation
Home
The institutional trading floor you can hold in your hand. Learn options and futures by making decisions — not by memorising formulas.
DerivLab is a local-first, cinematic strategy simulator. It combines real market history, synthetic option chains, a live decision game, and three autonomous AI desks that trade against you and explain what they saw.
Watch the 25-second demo · README · Getting Started
| Layer | What it does |
|---|---|
| Strategy Deck | Five field-guide playbooks: basis, covered call, cash-secured put, long straddle, iron condor. |
| Backtest Lab | Payoff, equity, drawdown, cycles, Greeks, and institutional KPIs on historical data. |
| AI Arena | Three autonomous rival desks, a four-desk leaderboard, a three-section critic report, and a cyberpunk NewsWire. |
| Hold the Position | A live, one-day-per-second risk game with alerts, roll/hold/liquidate decisions, and a debrief. |
| Data Vault | Fourteen instruments, local cache, bundled seed, provenance, and refresh controls. |
| Field Guide | The language of derivatives, without the fog. |
| If you want to… | Go to… |
|---|---|
| Run the app in minutes | Getting Started |
| See every screen and what it teaches | Feature Tour |
| Understand the simulation engine | Architecture · Backtest Engine |
| Understand the AI desks and the async bridge | AI Agents |
| Pick a model for the critic and the wire | AI Model Guide |
| Deploy it for a team | Deployment |
| Run the tests and inspect CI | Testing & CI |
| Fix a problem | Troubleshooting |
| Understand the documentation system | Documentation & ADRs |
| Plan a release | Versioning |
- CI workflow — lint, 248 tests, Docker build, and container health.
- CodeQL workflow — Python code scanning on push, pull request, and a weekly schedule.
- Code scanning results — CodeQL alerts (currently zero).
- Docs workflow — link checking, ADR validation, versioning, and presentation assets.
-
mainis branch-protected with required checks:Python 3.10 · lint + testsDocker image and healthAnalyze PythonDocs · links + ADR
DerivLab is an educational simulator, not a broker or an execution system. Option chains are synthesized with Black-Scholes, the basis trade uses an idealized convergence hedge, and the AI commentary can be wrong. Nothing in this repository is investment advice.
Explore the documentation using the sidebar →
DerivLab · an educational options & futures strategy emulator · docs verified against v1.2.0 on 2026-10-23 · README · Docs feedback · MIT License · Not investment advice.
Start here
- Home
- Getting Started
- Compatibility & Versions
- Feature Tour
- FAQ
- Documentation & ADRs
- Versioning
- Roadmap
Core systems
- Architecture
- Backtest Engine
- Strategy Library
- AI Agents
- AI Model Guide
- LLM Quality & Safety
- Data Pipeline
- Game Mode
Engineering
- Configuration
- Testing & CI
- Deployment
- Security
- Project Structure
- Troubleshooting
- Glossary
- Release Notes