pub struct DataFilter {Show 18 fields
pub implied_volatility_min: Option<f64>,
pub implied_volatility_max: Option<f64>,
pub delta_min: Option<f64>,
pub delta_max: Option<f64>,
pub gamma_min: Option<f64>,
pub gamma_max: Option<f64>,
pub vega_min: Option<f64>,
pub vega_max: Option<f64>,
pub theta_min: Option<f64>,
pub theta_max: Option<f64>,
pub rho_min: Option<f64>,
pub rho_max: Option<f64>,
pub net_open_interest_min: Option<f64>,
pub net_open_interest_max: Option<f64>,
pub open_interest_min: Option<f64>,
pub open_interest_max: Option<f64>,
pub vol_min: Option<f64>,
pub vol_max: Option<f64>,
}Expand description
以下为数据字段筛选,可选字段,不填表示不过滤
Fields§
§implied_volatility_min: Option<f64>隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
implied_volatility_max: Option<f64>隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
delta_min: Option<f64>希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
delta_max: Option<f64>希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
gamma_min: Option<f64>希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
gamma_max: Option<f64>希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
vega_min: Option<f64>希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
vega_max: Option<f64>希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
theta_min: Option<f64>希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
theta_max: Option<f64>希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
rho_min: Option<f64>希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
rho_max: Option<f64>希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
net_open_interest_min: Option<f64>净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
net_open_interest_max: Option<f64>净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
open_interest_min: Option<f64>未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
open_interest_max: Option<f64>未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
vol_min: Option<f64>成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
vol_max: Option<f64>成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
Implementations§
Source§impl DataFilter
impl DataFilter
Sourcepub fn implied_volatility_min(&self) -> f64
pub fn implied_volatility_min(&self) -> f64
Returns the value of implied_volatility_min, or the default value if implied_volatility_min is unset.
Sourcepub fn implied_volatility_max(&self) -> f64
pub fn implied_volatility_max(&self) -> f64
Returns the value of implied_volatility_max, or the default value if implied_volatility_max is unset.
Sourcepub fn delta_min(&self) -> f64
pub fn delta_min(&self) -> f64
Returns the value of delta_min, or the default value if delta_min is unset.
Sourcepub fn delta_max(&self) -> f64
pub fn delta_max(&self) -> f64
Returns the value of delta_max, or the default value if delta_max is unset.
Sourcepub fn gamma_min(&self) -> f64
pub fn gamma_min(&self) -> f64
Returns the value of gamma_min, or the default value if gamma_min is unset.
Sourcepub fn gamma_max(&self) -> f64
pub fn gamma_max(&self) -> f64
Returns the value of gamma_max, or the default value if gamma_max is unset.
Sourcepub fn vega_min(&self) -> f64
pub fn vega_min(&self) -> f64
Returns the value of vega_min, or the default value if vega_min is unset.
Sourcepub fn vega_max(&self) -> f64
pub fn vega_max(&self) -> f64
Returns the value of vega_max, or the default value if vega_max is unset.
Sourcepub fn theta_min(&self) -> f64
pub fn theta_min(&self) -> f64
Returns the value of theta_min, or the default value if theta_min is unset.
Sourcepub fn theta_max(&self) -> f64
pub fn theta_max(&self) -> f64
Returns the value of theta_max, or the default value if theta_max is unset.
Sourcepub fn rho_min(&self) -> f64
pub fn rho_min(&self) -> f64
Returns the value of rho_min, or the default value if rho_min is unset.
Sourcepub fn rho_max(&self) -> f64
pub fn rho_max(&self) -> f64
Returns the value of rho_max, or the default value if rho_max is unset.
Sourcepub fn net_open_interest_min(&self) -> f64
pub fn net_open_interest_min(&self) -> f64
Returns the value of net_open_interest_min, or the default value if net_open_interest_min is unset.
Sourcepub fn net_open_interest_max(&self) -> f64
pub fn net_open_interest_max(&self) -> f64
Returns the value of net_open_interest_max, or the default value if net_open_interest_max is unset.
Sourcepub fn open_interest_min(&self) -> f64
pub fn open_interest_min(&self) -> f64
Returns the value of open_interest_min, or the default value if open_interest_min is unset.
Sourcepub fn open_interest_max(&self) -> f64
pub fn open_interest_max(&self) -> f64
Returns the value of open_interest_max, or the default value if open_interest_max is unset.
Trait Implementations§
Source§impl Clone for DataFilter
impl Clone for DataFilter
Source§fn clone(&self) -> DataFilter
fn clone(&self) -> DataFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DataFilter
impl Debug for DataFilter
Source§impl Default for DataFilter
impl Default for DataFilter
Source§impl<'de> Deserialize<'de> for DataFilterwhere
DataFilter: Default,
impl<'de> Deserialize<'de> for DataFilterwhere
DataFilter: Default,
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 Message for DataFilter
impl Message for DataFilter
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.