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;
9pub mod client;
10#[doc(hidden)]
11pub mod engine;
12#[doc(hidden)]
13pub mod signals;
14
15#[derive(Debug, Clone, Args)]
16pub struct ApiKeyArg {
17    /// API key for authentication
18    #[arg(long, env = "SIMULATOR_API_KEY")]
19    pub api_key: String,
20}
21
22impl ApiKeyArg {
23    pub fn get(&self) -> String {
24        self.api_key.clone()
25    }
26}