Saltar al contenido principal

Tutorials

Runnable, learning-oriented walkthroughs. Each tutorial assumes the quickstart has succeeded.

Python snippets execute via Pyodide directly in your browser; full project setups open in StackBlitz WebContainers. Both are sandboxed and never reach the production cluster.

Tutorial catalogue

  • First backtest — author a momentum strategy, run it through EventDrivenBacktester, inspect the backtest_runs ledger row, render a tearsheet.
  • First bot — wrap the strategy in a TradingBot spec, snapshot the version, run a paper session.
  • First RL experiment — author an RLExperimentSpec, train via SB3 PPO, replay from the Iceberg trajectory store.
  • First agent workflow — compose a three-node LangGraph (Research → Selection → Trader), run it through AgentRuntime, inspect the agent_runs_v2 ledger.
  • First paper trading session — attach the bot to the paper broker, watch the WebSocket frames, trigger the kill switch.

Each tutorial includes:

  1. A "Why" section explaining what you are about to learn.
  2. A canonical reference to the deeper concept doc.
  3. Inline runnable code.
  4. A "Verify" checklist at the end.
  5. A "What next" pointer.

Conventions for these tutorials

  • One concept per page. If a tutorial gets too long, split it and link the second page.
  • Verify everything. Every code block produces an observable effect — a JSON response, a ledger row, a WebSocket frame.
  • Show the failure mode. Each tutorial documents at least one expected error and how to recover.