Skip to main content

Module artifacts

Module artifacts 

Source
Expand description

Additive, serializable artifacts for future backtest runners.

These types deliberately consume normalized runner observations rather than depending on TradeEngine. This keeps artifact collection usable by the current engine, future execution paths, and external replay integrations.

Structs§

CloseEvent
A realized close, including partial closes, in additive account currency.
CompletedPosition
Complete campaign-level outcome for one position.
ExecutionMetadata
Reproducibility metadata for the execution/accounting model used by a run.
FutureBacktestArtifacts
Complete additive artifact payload for a future backtest run.
OpenPositionSnapshot
Serializable runner-supplied state for one currently open position.
PendingOrderLifecycleEvent
One append-only transition in the FutureQuote pending-order lifecycle.
PendingOrderSnapshot
Serializable state for an order that has not filled at the end of a run.
RecordedFill
An execution fill enriched with all timing and quote context needed for an execution audit.
RiskTranche
Initial risk attached to one entry/scale-in tranche.

Enums§

NetPnlOutcome
Epsilon-aware classification of additive net P&L.
PendingOrderLifecycleState
State transition emitted by the FutureQuote pending-order lifecycle.
RiskBasisStatus
Availability and validity of a position’s initial monetary risk basis.

Constants§

DEFAULT_PNL_EPSILON
Default absolute tolerance used to classify net P&L as breakeven.
FUTURE_ARTIFACT_FORMAT_VERSION
Current on-disk format version for FutureBacktestArtifacts.

Functions§

deterministic_event_id
Return a stable, human-readable event id for a scoped zero-based sequence.