INNER CODE UNIT · Rust

var_prefix

pbeets/rithmic-rs · src/config.rs:60

    fn var_prefix(self) -> &'static str {
        match self {
            RithmicEnv::Demo => "RITHMIC_DEMO",
            RithmicEnv::Live => "RITHMIC_LIVE",
            RithmicEnv::Test => "RITHMIC_TEST",
        }
    }

    /// The Rithmic system name this environment logs in to by default.
    fn default_system_name(self) -> &'static str {
        match self {
            RithmicEnv::Demo => "Rithmic Paper Trading",
            RithmicEnv::Live => "Rithmic 01",
            RithmicEnv::Test => "Rithmic Test",
        }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…