trader.reporting.web.app module¶
FastAPI app serving interactive equity-curve and P&L reports (issue #20).
Read-only: no route here writes to the database or submits an order. create_app takes already-built collaborators — the same shape as every build_* construction seam in trader.cli.main — so tests substitute fakes and nothing about the trading daemon’s own construction changes because this module exists.
- trader.reporting.web.app.create_app(snapshot_repo, outcome_repo, reporting_config, provider, trade_repo, decision_repo)[source]¶
- Parameters:
snapshot_repo (SnapshotRepository)
outcome_repo (OutcomeRepository)
reporting_config (ReportingConfig)
provider (MarketDataProvider)
trade_repo (TradeRepository)
decision_repo (DecisionRepository)
- Return type:
FastAPI