pub struct SpreadAnalytics {Show 29 fields
pub is_put_spread: bool,
pub underlying_price: f64,
pub short_strike: f64,
pub long_strike: f64,
pub width: f64,
pub credit: f64,
pub dte: i64,
pub chain_iv_pct: Option<f64>,
pub realized_vol_pct: Option<f64>,
pub iv_rv_ratio: Option<f64>,
pub short_delta: Option<f64>,
pub long_delta: Option<f64>,
pub short_theta: Option<f64>,
pub long_theta: Option<f64>,
pub net_theta_per_day_usd: Option<f64>,
pub short_otm_pct: Option<f64>,
pub approx_short_otm_prob_pct: Option<f64>,
pub break_even_price: Option<f64>,
pub distance_to_be_usd: Option<f64>,
pub distance_to_be_pct: Option<f64>,
pub expected_move_1sigma_usd: Option<f64>,
pub expected_move_1sigma_pct: Option<f64>,
pub short_strike_inside_1sigma: Option<bool>,
pub spread_pop_pct: Option<f64>,
pub credit_to_width_pct: Option<f64>,
pub max_loss_per_spread_usd: Option<f64>,
pub risk_reward_ratio: Option<f64>,
pub underlying_change_pct: Option<f64>,
pub distance_to_short_strike_usd: Option<f64>,
}Expand description
Enriched spread metrics for TUI, LLM context, and entry filters.
Fields§
§is_put_spread: bool§underlying_price: f64§short_strike: f64§long_strike: f64§width: f64§credit: f64§dte: i64§chain_iv_pct: Option<f64>§realized_vol_pct: Option<f64>Annualized realized vol (%) of the underlying over the configured lookback.
iv_rv_ratio: Option<f64>chain_iv_pct / realized_vol_pct when both are available.
short_delta: Option<f64>§long_delta: Option<f64>§short_theta: Option<f64>§long_theta: Option<f64>§net_theta_per_day_usd: Option<f64>Position theta $/day per spread (positive = decay helps seller).
short_otm_pct: Option<f64>§approx_short_otm_prob_pct: Option<f64>§break_even_price: Option<f64>§distance_to_be_usd: Option<f64>§distance_to_be_pct: Option<f64>§expected_move_1sigma_usd: Option<f64>§expected_move_1sigma_pct: Option<f64>§short_strike_inside_1sigma: Option<bool>§spread_pop_pct: Option<f64>§credit_to_width_pct: Option<f64>§max_loss_per_spread_usd: Option<f64>§risk_reward_ratio: Option<f64>§underlying_change_pct: Option<f64>§distance_to_short_strike_usd: Option<f64>Trait Implementations§
Source§impl Clone for SpreadAnalytics
impl Clone for SpreadAnalytics
Source§fn clone(&self) -> SpreadAnalytics
fn clone(&self) -> SpreadAnalytics
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 SpreadAnalytics
impl Debug for SpreadAnalytics
Source§impl Default for SpreadAnalytics
impl Default for SpreadAnalytics
Source§fn default() -> SpreadAnalytics
fn default() -> SpreadAnalytics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpreadAnalytics
impl<'de> Deserialize<'de> for SpreadAnalytics
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 SpreadAnalytics
impl RefUnwindSafe for SpreadAnalytics
impl Send for SpreadAnalytics
impl Sync for SpreadAnalytics
impl Unpin for SpreadAnalytics
impl UnsafeUnpin for SpreadAnalytics
impl UnwindSafe for SpreadAnalytics
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