pub struct OptionContract {Show 17 fields
pub id: Uuid,
pub symbol: String,
pub name: String,
pub status: AssetStatus,
pub tradable: bool,
pub expiration_date: String,
pub strike_price: String,
pub option_type: OptionType,
pub style: OptionStyle,
pub underlying_symbol: String,
pub underlying_asset_id: Uuid,
pub root_symbol: String,
pub open_interest: Option<String>,
pub open_interest_date: Option<String>,
pub size: Option<String>,
pub close_price: Option<String>,
pub close_price_date: Option<String>,
}Expand description
Option contract information.
Fields§
§id: UuidUnique contract identifier.
symbol: StringOCC symbol for the contract.
name: StringHuman-readable contract name.
status: AssetStatusContract status.
tradable: boolWhether the contract is tradable.
expiration_date: StringExpiration date (YYYY-MM-DD).
strike_price: StringStrike price in dollars.
option_type: OptionTypeOption type (call or put).
style: OptionStyleOption style (American or European).
underlying_symbol: StringUnderlying asset symbol.
underlying_asset_id: UuidUnderlying asset ID.
root_symbol: StringRoot symbol for the option chain.
open_interest: Option<String>Open interest (number of open contracts).
open_interest_date: Option<String>Date when open interest was last updated.
size: Option<String>Contract size (typically 100 shares).
close_price: Option<String>Close price from previous trading day.
close_price_date: Option<String>Date of close price.
Trait Implementations§
Source§impl Clone for OptionContract
impl Clone for OptionContract
Source§fn clone(&self) -> OptionContract
fn clone(&self) -> OptionContract
Returns a duplicate of the value. Read more
1.0.0 · 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 OptionContract
impl Debug for OptionContract
Source§impl<'de> Deserialize<'de> for OptionContract
impl<'de> Deserialize<'de> for OptionContract
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OptionContract
impl Serialize for OptionContract
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OptionContract
impl RefUnwindSafe for OptionContract
impl Send for OptionContract
impl Sync for OptionContract
impl Unpin for OptionContract
impl UnwindSafe for OptionContract
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