pub struct OptionsRegimeConfig {
pub enabled: bool,
pub benchmark_symbol: String,
pub vix_symbol: String,
pub vix_low: f64,
pub vix_high: f64,
pub pause_entries_vix_above: f64,
pub pause_entries_vix_below: Option<f64>,
pub realized_vol_lookback: usize,
pub strategy_map: HashMap<String, String>,
}Expand description
Maps market regime → preferred options structure.
Fields§
§enabled: bool§benchmark_symbol: String§vix_symbol: String§vix_low: f64§vix_high: f64§pause_entries_vix_above: f64Pause all new entries when VIX is at or above this (hostile / crash regime).
pause_entries_vix_below: Option<f64>Pause all new entries when VIX is at or below this (crushed-vol / cheap insurance).
Omit or null to disable. Independent of vix_low (classification only).
realized_vol_lookback: usizeLookback days for realized-vol used by min_iv_rv_ratio entry gates.
strategy_map: HashMap<String, String>regime class → preferred strategy: put_credit, call_credit, iron_condor, pause.
Trait Implementations§
Source§impl Clone for OptionsRegimeConfig
impl Clone for OptionsRegimeConfig
Source§fn clone(&self) -> OptionsRegimeConfig
fn clone(&self) -> OptionsRegimeConfig
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 OptionsRegimeConfig
impl Debug for OptionsRegimeConfig
Source§impl Default for OptionsRegimeConfig
impl Default for OptionsRegimeConfig
Source§impl<'de> Deserialize<'de> for OptionsRegimeConfigwhere
OptionsRegimeConfig: Default,
impl<'de> Deserialize<'de> for OptionsRegimeConfigwhere
OptionsRegimeConfig: Default,
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 OptionsRegimeConfig
impl RefUnwindSafe for OptionsRegimeConfig
impl Send for OptionsRegimeConfig
impl Sync for OptionsRegimeConfig
impl Unpin for OptionsRegimeConfig
impl UnsafeUnpin for OptionsRegimeConfig
impl UnwindSafe for OptionsRegimeConfig
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