Skip to main content

FinancialCalendarArgs

Struct FinancialCalendarArgs 

Source
pub struct FinancialCalendarArgs {
Show 13 fields pub(crate) begin_date: String, pub(crate) end_date: String, pub(crate) markets: Vec<String>, pub(crate) pub_types: Vec<String>, pub(crate) stock_types: Vec<String>, pub(crate) watchlist_only: bool, pub(crate) positions_only: bool, pub(crate) count: i32, pub(crate) ranking_type: Option<i32>, pub(crate) custom_filters: Vec<String>, pub(crate) estimate_types: Vec<String>, pub(crate) watchlist_stock_ids: Vec<u64>, pub(crate) holding_stock_ids: Vec<u64>,
}

Fields§

§begin_date: String

起始日期 YYYYMMDD

§end_date: String

结束日期右开边界 YYYYMMDD

§markets: Vec<String>

市场: HK|US|CN|AU|SG|CA|JP|MY 或 1..8;可重复,也可逗号分隔

§pub_types: Vec<String>

财报发布时段: regular|before|after 或 0|1|2;可重复,也可逗号分隔

§stock_types: Vec<String>

股票筛选: watchlist|position|special 或 1|2|3;可重复,也可逗号分隔

§watchlist_only: bool

只看自选股财报日历;需要配合 –watchlist-stock-id 提供客户端已知 stock_id

§positions_only: bool

只看持仓股财报日历;需要配合 –holding-stock-id 提供客户端已知 stock_id

§count: i32

返回数量上限,1..1000

§ranking_type: Option<i32>

排序类型,按 financial_calendar RankingType enum 传整数

§custom_filters: Vec<String>

自定义过滤,格式 TYPE[:MIN[:MAX]];TYPE 支持 market-cap|option-volume|iv|iv-rank|iv-pctl|rt-market-cap 或 1..6

§estimate_types: Vec<String>

预估指标: eps_gaap|revenue|ebit 或 1|2|3;默认 eps_gaap,revenue,ebit

§watchlist_stock_ids: Vec<u64>

显式自选股 stock_id;可重复

§holding_stock_ids: Vec<u64>

显式持仓 stock_id;可重复

Trait Implementations§

Source§

impl Args for FinancialCalendarArgs

Source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
Source§

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 more
Source§

impl FromArgMatches for FinancialCalendarArgs

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more