pub struct OptionChainArgs {Show 17 fields
pub(crate) owner: Option<String>,
pub(crate) owner_arg: Option<String>,
pub(crate) begin: String,
pub(crate) end: String,
pub(crate) option_type: String,
pub(crate) delta_min: Option<f64>,
pub(crate) delta_max: Option<f64>,
pub(crate) iv_min: Option<f64>,
pub(crate) iv_max: Option<f64>,
pub(crate) oi_min: Option<f64>,
pub(crate) oi_max: Option<f64>,
pub(crate) gamma_min: Option<f64>,
pub(crate) gamma_max: Option<f64>,
pub(crate) vega_min: Option<f64>,
pub(crate) vega_max: Option<f64>,
pub(crate) theta_min: Option<f64>,
pub(crate) theta_max: Option<f64>,
}Fields§
§owner: Option<String>正股 MARKET.CODE,如 HK.00700 / US.AAPL(位置参数或 –owner / –code 二选一)
owner_arg: Option<String>REST/MCP 风格命名参数别名
begin: String到期日范围开始 YYYY-MM-DD
end: String到期日范围结束 YYYY-MM-DD
option_type: String期权类型:all|call|put(默认 all)
delta_min: Option<f64>Greek filter: delta 下限
delta_max: Option<f64>Greek filter: delta 上限
iv_min: Option<f64>Greek filter: implied volatility 下限(小数,如 0.3 = 30%)
iv_max: Option<f64>Greek filter: implied volatility 上限(小数,如 0.3 = 30%)
oi_min: Option<f64>Greek filter: open interest 下限
oi_max: Option<f64>Greek filter: open interest 上限
gamma_min: Option<f64>Greek filter: gamma 下限
gamma_max: Option<f64>Greek filter: gamma 上限
vega_min: Option<f64>Greek filter: vega 下限
vega_max: Option<f64>Greek filter: vega 上限
theta_min: Option<f64>Greek filter: theta 下限
theta_max: Option<f64>Greek filter: theta 上限
Trait Implementations§
Source§impl Args for OptionChainArgs
impl Args for OptionChainArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for OptionChainArgs
impl FromArgMatches for OptionChainArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for OptionChainArgs
impl RefUnwindSafe for OptionChainArgs
impl Send for OptionChainArgs
impl Sync for OptionChainArgs
impl Unpin for OptionChainArgs
impl UnsafeUnpin for OptionChainArgs
impl UnwindSafe for OptionChainArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more