pub struct RulesConfig {Show 15 fields
pub version: u32,
pub agent_id: String,
pub accounts: Vec<RulesAccount>,
pub schedule: ScheduleConfig,
pub strategies: StrategiesToggle,
pub watchlist: Vec<WatchlistEntry>,
pub entry_policy: EntryPolicyConfig,
pub entry_rules: EntryRules,
pub exit_rules: ExitRules,
pub risk: RiskConfig,
pub regime: OptionsRegimeConfig,
pub execution: ExecutionConfig,
pub llm: LlmConfig,
pub notify: NotifyConfig,
pub simulation: Option<SimulationConfig>,
}Fields§
§version: u32§agent_id: String§accounts: Vec<RulesAccount>§schedule: ScheduleConfig§strategies: StrategiesToggle§watchlist: Vec<WatchlistEntry>Symbols to scan for entries, in priority order. Each entry may be a ticker string or
{ symbol, role, min_credit, ... } with per-symbol overrides.
entry_policy: EntryPolicyConfig§entry_rules: EntryRules§exit_rules: ExitRules§risk: RiskConfig§regime: OptionsRegimeConfigRegime-aware strategy selection (put credit / call credit / iron condor / pause).
execution: ExecutionConfig§llm: LlmConfig§notify: NotifyConfig§simulation: Option<SimulationConfig>Paper trading (–simulate): virtual budget separate from live agent state.
Implementations§
Source§impl RulesConfig
impl RulesConfig
pub fn load(path: &Path) -> Result<Self>
pub fn validate(&self) -> Result<()>
pub fn enabled_accounts(&self) -> impl Iterator<Item = &RulesAccount>
pub fn watchlist_items(&self) -> Vec<WatchlistItemConfig>
pub fn watchlist_symbols(&self) -> Vec<String>
pub fn effective_vertical_entry(&self, symbol: &str) -> VerticalEntryRules
Trait Implementations§
Source§impl Clone for RulesConfig
impl Clone for RulesConfig
Source§fn clone(&self) -> RulesConfig
fn clone(&self) -> RulesConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RulesConfig
impl Debug for RulesConfig
Source§impl<'de> Deserialize<'de> for RulesConfig
impl<'de> Deserialize<'de> for RulesConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RulesConfig
impl RefUnwindSafe for RulesConfig
impl Send for RulesConfig
impl Sync for RulesConfig
impl Unpin for RulesConfig
impl UnsafeUnpin for RulesConfig
impl UnwindSafe for RulesConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more