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.
Try the offline demo · Watch the 80-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. |
| I want to… | Time | Outcome | Start |
|---|---|---|---|
| See it working | 2 min | A live AI Arena, one cycle, a verdict and a news wire | Live demo · Feature Tour |
| Learn the strategies | 20 min | Covered calls, straddles, condors, basis — and the risk behind each | Strategy Library · Feature Tour · Game Mode |
| Run or deploy it | 30 min | Local terminal, GHCR one-liner, or hosted widget | Getting Started · Deployment · Compatibility |
New here? Start with the 2-minute path. It needs no key, no account, and no market-data subscription.
| If you want to… | Go to… |
|---|---|
| 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 |
| Understand how LLM quality and safety are enforced | LLM Quality & Safety |
| Deploy it for a team | Deployment |
| Run the tests and inspect CI | Testing & CI |
| Fix a problem | Troubleshooting |
| Check versions and compatibility | Compatibility & Versions |
| Understand the documentation system | Documentation & ADRs |
| Plan a release | Versioning |
| See what is planned | Roadmap #17 |
- 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.
-
Coverage: 85% with an 80% CI gate; the generated badge lives in
docs/badges/coverage.svg. -
One command:
docker run --rm -p 8501:8501 ghcr.io/sergeyger/derivlab:latest(GHCR package). -
mainis protected by the Protect Main repository ruleset with required checks, required PRs, strict branch freshness, and no bypass actors:Python 3.11 · 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