Skip to main content

Module context

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§

FlowMetrics
Net order-flow metrics (placeholder for walking skeleton).
NullFeatureStore
Stub feature store that returns None for all queries.
RegimeState
Market regime classification (placeholder for walking skeleton).
ReplayClock
Replay clock — fed timestamps from journal events during replay.
StrategyContext
Read-only context provided to strategies on every event.
SystemClock
System clock for live mode — backed by Utc::now() and Instant monotonic.

Traits§

Clock
Injected clock — ensures deterministic replay by avoiding Utc::now().
FeatureStore
Read-only store of derived features computed by the platform.

Type Aliases§

StrategyConfig
Strategy-specific configuration (opaque parameter bag).