pub struct OptionSpreadStrikesQuery {
pub underlying: String,
pub spread_type: OptionSpreadType,
pub strike_interval: i32,
pub expiration: Option<String>,
pub expiration2: Option<String>,
}Expand description
The query required to fetch OptionSpreadStrikes.
Fields§
§underlying: StringThe symbol for the underlying security on which the option contracts are based.
NOTE: The underlying symbol must be an equity or index.
spread_type: OptionSpreadTypeThe type of spread market_data::OptionSpreadType
strike_interval: i32The desired interval between the strike prices in a spread. It must be greater than or equal to 1. A value of 1 uses consecutive strikes; a value of 2 skips one between strikes; and so on.
expiration: Option<String>The date on which the option contract expires; must be a valid expiration date.
NOTE: Defaults to the next contract expiration date.
expiration2: Option<String>The second contract expiration date required for Calendar and Diagonal spreads.
Trait Implementations§
Source§impl Clone for OptionSpreadStrikesQuery
impl Clone for OptionSpreadStrikesQuery
Source§fn clone(&self) -> OptionSpreadStrikesQuery
fn clone(&self) -> OptionSpreadStrikesQuery
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 OptionSpreadStrikesQuery
impl Debug for OptionSpreadStrikesQuery
Source§impl<'de> Deserialize<'de> for OptionSpreadStrikesQuery
impl<'de> Deserialize<'de> for OptionSpreadStrikesQuery
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 OptionSpreadStrikesQuery
impl RefUnwindSafe for OptionSpreadStrikesQuery
impl Send for OptionSpreadStrikesQuery
impl Sync for OptionSpreadStrikesQuery
impl Unpin for OptionSpreadStrikesQuery
impl UnwindSafe for OptionSpreadStrikesQuery
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