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
7pub mod artifact_store;
8pub mod config;
9pub mod convert;
10pub mod error;
11mod fx_loader;
12pub mod handlers;
13mod instrument_catalog;
14mod market_loader;
15mod replay_plan;
16pub mod rpc_types;
17
18pub use artifact_store::ArtifactStore;
19pub use config::ServerConfig;
20pub use error::{BacktestServerError, Result};
21pub use handlers::ServerState;
22pub use instrument_catalog::InstrumentDomain;
23pub use rpc_types::*;
24
25pub fn instrument_domain_from_config(
26    config: &config::InstrumentsSection,
27    registry: &qs_symbols::SymbolRegistry,
28) -> Result<InstrumentDomain> {
29    InstrumentDomain::load(config, registry)
30}