Module context
Expand description
Strategy context: read-only state, clock, and feature store.
StrategyContext is passed to Strategy::on_event
on every cycle, giving the strategy a consistent view of the world
without direct access to mutable platform internals.
Structs§
- Flow
Metrics - Net order-flow metrics (placeholder for walking skeleton).
- Null
Feature Store - Stub feature store that returns
Nonefor all queries. - Regime
State - Market regime classification (placeholder for walking skeleton).
- Replay
Clock - Replay clock — fed timestamps from journal events during replay.
- Strategy
Context - Read-only context provided to strategies on every event.
- System
Clock - System clock for live mode — backed by
Utc::now()andInstantmonotonic.
Traits§
- Clock
- Injected clock — ensures deterministic replay by avoiding
Utc::now(). - Feature
Store - Read-only store of derived features computed by the platform.
Type Aliases§
- Strategy
Config - Strategy-specific configuration (opaque parameter bag).