Skip to main content

sim_cli/
lib.rs

1//! Library surface backing the `sim` binary.
2//!
3//! These modules are an internal, semver-exempt API consumed by in-workspace
4//! tools (e.g. `backtest-driver`); the published artifact is the binary.
5
6use clap::Args;
7
8pub mod args;
9#[doc(hidden)]
10pub mod engine;
11#[doc(hidden)]
12pub mod signals;
13
14#[derive(Debug, Clone, Args)]
15pub struct ApiKeyArg {
16    /// API key for authentication
17    #[arg(long, env = "SIMULATOR_API_KEY")]
18    pub api_key: String,
19}
20
21impl ApiKeyArg {
22    pub fn get(&self) -> String {
23        self.api_key.clone()
24    }
25}