pub struct DeltasInStrike {
pub long_call: Decimal,
pub short_call: Decimal,
pub long_put: Decimal,
pub short_put: Decimal,
}Expand description
Represents option delta values for all four basic option positions at a specific strike price.
This structure contains delta values for the four fundamental option positions: long call, short call, long put, and short put. Delta measures the rate of change of an option’s price with respect to changes in the underlying asset’s price.
§Fields
-
long_call- Delta value for a long call position. Typically ranges between 0 and 1, where values closer to 1 indicate the option behaves more like the underlying asset. -
short_call- Delta value for a short call position. This is the negative of the long call delta, typically ranging from -1 to 0. -
long_put- Delta value for a long put position. Typically ranges between -1 and 0, where values closer to -1 indicate stronger inverse correlation with the underlying. -
short_put- Delta value for a short put position. This is the negative of the long put delta, typically ranging from 0 to 1.
§Usage
This struct is typically used in options analysis, risk management, and strategy development to assess position sensitivity to underlying price movements at specific strike prices.
Delta values are essential for understanding directional exposure and for implementing delta-neutral strategies in options trading.
Fields§
§long_call: DecimalDelta value for a long call option position
short_call: DecimalDelta value for a short call option position
long_put: DecimalDelta value for a long put option position
short_put: DecimalDelta value for a short put option position
Trait Implementations§
Source§impl Clone for DeltasInStrike
impl Clone for DeltasInStrike
Source§fn clone(&self) -> DeltasInStrike
fn clone(&self) -> DeltasInStrike
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for DeltasInStrike
impl ComposeSchema for DeltasInStrike
Source§impl Debug for DeltasInStrike
impl Debug for DeltasInStrike
Source§impl<'de> Deserialize<'de> for DeltasInStrike
impl<'de> Deserialize<'de> for DeltasInStrike
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>,
Source§impl Display for DeltasInStrike
impl Display for DeltasInStrike
Source§impl Serialize for DeltasInStrike
impl Serialize for DeltasInStrike
Auto Trait Implementations§
impl Freeze for DeltasInStrike
impl RefUnwindSafe for DeltasInStrike
impl Send for DeltasInStrike
impl Sync for DeltasInStrike
impl Unpin for DeltasInStrike
impl UnsafeUnpin for DeltasInStrike
impl UnwindSafe for DeltasInStrike
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.