pub struct OptionChainQueryParams {
pub underlying_symbol: String,
pub expiration_date: Option<DateTime<Utc>>,
pub strike_price: Option<f64>,
pub option_type: Option<OptionType>,
}Expand description
Parameters for querying option chains.
Fields§
§underlying_symbol: StringUnderlying symbol
expiration_date: Option<DateTime<Utc>>Expiration date filter
strike_price: Option<f64>Strike price filter
option_type: Option<OptionType>Option type filter
Implementations§
Source§impl OptionChainQueryParams
impl OptionChainQueryParams
Sourcepub fn new(underlying_symbol: impl Into<String>) -> Self
pub fn new(underlying_symbol: impl Into<String>) -> Self
Create new option chain query parameters.
Sourcepub fn expiration_date(self, expiration_date: DateTime<Utc>) -> Self
pub fn expiration_date(self, expiration_date: DateTime<Utc>) -> Self
Set the expiration date filter.
Sourcepub fn strike_price(self, strike_price: f64) -> Self
pub fn strike_price(self, strike_price: f64) -> Self
Set the strike price filter.
Sourcepub fn option_type(self, option_type: OptionType) -> Self
pub fn option_type(self, option_type: OptionType) -> Self
Set the option type filter.
Trait Implementations§
Source§impl Clone for OptionChainQueryParams
impl Clone for OptionChainQueryParams
Source§fn clone(&self) -> OptionChainQueryParams
fn clone(&self) -> OptionChainQueryParams
Returns a copy 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 OptionChainQueryParams
impl Debug for OptionChainQueryParams
Source§impl<'de> Deserialize<'de> for OptionChainQueryParams
impl<'de> Deserialize<'de> for OptionChainQueryParams
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 OptionChainQueryParams
impl RefUnwindSafe for OptionChainQueryParams
impl Send for OptionChainQueryParams
impl Sync for OptionChainQueryParams
impl Unpin for OptionChainQueryParams
impl UnwindSafe for OptionChainQueryParams
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