Skip to main content

backtest_server/
lib.rs

1//! `qs-backtest-server` — Backtest server with shared memory IPC.
2//!
3//! Exposes the backtesting pipeline as an xrpc-rs shared-memory RPC service.
4//! Clients submit signals, a management profile, and a date range; the server
5//! loads Parquet data, runs the backtest, and returns serialized results.
6
7mod admission;
8pub mod artifact_store;
9pub mod config;
10pub mod convert;
11pub mod error;
12mod fx_loader;
13pub mod handlers;
14mod instrument_catalog;
15mod replay_plan;
16pub mod rpc_types;
17pub mod strategy_client;
18
19pub use artifact_store::ArtifactStore;
20pub use config::ServerConfig;
21pub use error::{BacktestServerError, Result};
22pub use handlers::ServerState;
23pub use instrument_catalog::InstrumentDomain;
24pub use rpc_types::*;
25
26pub fn instrument_domain_from_config(
27    config: &config::InstrumentsSection,
28    registry: &qs_symbols::SymbolRegistry,
29) -> Result<InstrumentDomain> {
30    InstrumentDomain::load(config, registry)
31}