Skip to main content

sharpebench_sim/
lib.rs

1//! sb-sim — point-in-time market simulator + reference agents (Phase 1).
2//!
3//! The engine feeds an [`Agent`] a [`sharpebench_protocol::MarketObservation`] that only
4//! ever contains data at or before the decision date (look-ahead is structurally
5//! impossible — [`Dataset`] never hands out a future bar), applies the resulting
6//! orders with transaction costs and seeded execution slippage, and emits an
7//! [`sharpebench_core::Run`] (per-period returns + decision trace) ready for scoring.
8#![forbid(unsafe_code)]
9
10pub mod agent;
11pub mod costs;
12pub mod data;
13pub mod engine;
14pub mod env;
15pub mod external;
16pub mod trajectory;
17pub mod windows;
18
19pub use agent::{Agent, BuyAndHold, HoldAgent, Momentum, RandomAgent, TeamAgent};
20pub use costs::{CostModel, CostProfile};
21pub use data::Dataset;
22pub use engine::{run_backtest, Window};
23pub use env::{EnvState, Scenario, StepInfo, StepResult, TradingEnv};
24pub use external::{ExternalAgent, HttpAgent};
25pub use trajectory::{replay_run, replay_submission, run_backtest_capture};
26pub use windows::{tag_regime, walk_forward, Regime};