#[non_exhaustive]pub struct OptionSummaryUpdate {Show 20 fields
pub inst_type: String,
pub inst_id: String,
pub uly: String,
pub delta_bs: NumberString,
pub delta: NumberString,
pub gamma_bs: NumberString,
pub gamma_pa: NumberString,
pub vega_bs: NumberString,
pub vega_pa: NumberString,
pub theta_bs: NumberString,
pub theta: NumberString,
pub lever: NumberString,
pub mark_vol: NumberString,
pub bid_vol: NumberString,
pub ask_vol: NumberString,
pub real_vol: NumberString,
pub vol_lv: NumberString,
pub fwd_px: NumberString,
pub ts: NumberString,
pub extra: ExtraFields,
}Expand description
opt-summary channel row.
OKX docs: https://www.okx.com/docs-v5/en/#order-book-trading-public-data-ws-option-summary-channel
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inst_type: StringInstrument type, always OPTION.
inst_id: StringInstrument ID, e.g., BTC-USD-240329-40000-C.
uly: StringUnderlying index, e.g., BTC-USD.
delta_bs: NumberStringBlack-Scholes delta.
delta: NumberStringPortfolio-adjusted delta.
gamma_bs: NumberStringBlack-Scholes gamma.
gamma_pa: NumberStringPortfolio-adjusted gamma.
vega_bs: NumberStringBlack-Scholes vega.
vega_pa: NumberStringPortfolio-adjusted vega.
theta_bs: NumberStringBlack-Scholes theta.
theta: NumberStringPortfolio-adjusted theta.
lever: NumberStringLeverage (delta / price).
mark_vol: NumberStringMark implied volatility.
bid_vol: NumberStringBest bid implied volatility.
ask_vol: NumberStringBest ask implied volatility.
real_vol: NumberStringRealized volatility (30-day).
vol_lv: NumberStringVolatility for a given delta level.
fwd_px: NumberStringForward price used in the Black-Scholes calculation.
ts: NumberStringPush time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for OptionSummaryUpdate
impl Clone for OptionSummaryUpdate
Source§fn clone(&self) -> OptionSummaryUpdate
fn clone(&self) -> OptionSummaryUpdate
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 OptionSummaryUpdate
impl Debug for OptionSummaryUpdate
Source§impl Default for OptionSummaryUpdate
impl Default for OptionSummaryUpdate
Source§fn default() -> OptionSummaryUpdate
fn default() -> OptionSummaryUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptionSummaryUpdate
impl<'de> Deserialize<'de> for OptionSummaryUpdate
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 OptionSummaryUpdate
impl RefUnwindSafe for OptionSummaryUpdate
impl Send for OptionSummaryUpdate
impl Sync for OptionSummaryUpdate
impl Unpin for OptionSummaryUpdate
impl UnsafeUnpin for OptionSummaryUpdate
impl UnwindSafe for OptionSummaryUpdate
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