pub struct KlineArgs {
pub(crate) symbol_positional: Option<String>,
pub(crate) symbol_arg: Option<String>,
pub(crate) type: String,
pub(crate) count: Option<i32>,
pub(crate) rehab_type: String,
pub(crate) page_size: Option<i32>,
pub(crate) next_req_key: Option<String>,
pub(crate) need_kl_fields_flag: Option<i64>,
pub(crate) extended_time: bool,
pub(crate) session: Option<String>,
pub(crate) begin: Option<String>,
pub(crate) end: Option<String>,
}Fields§
§symbol_positional: Option<String>股票代码,MARKET.CODE 格式(positional)或 --symbol/--code 指定
symbol_arg: Option<String>v1.4.83 §10 alias: 显式 --symbol <X> / --code <X> / --stock <X>
type: StringK 线类型: day | week | month | quarter | year | 1min | 3min | 5min | 10min | 15min | 30min | 60min | 120min | 180min | 240min
v1.4.83 §10 新增 aliases: --ktype / --kltype / --kl-type
count: Option<i32>返回根数(默认 100)
v1.4.83 §10 新增 aliases: --num / --max-count / --req-count
rehab_type: String复权类型: none | forward | backward(默认 none)
page_size: Option<i32>backend 分页返回上限(Qot_RequestHistoryKL.maxAckKLNum);不传时保留 CLI 最新 N 根旧语义
next_req_key: Option<String>上一页响应返回的 next_req_key(base64)
need_kl_fields_flag: Option<i64>指定返回 K 线字段 bitmask(Qot_Common.KLFields)
extended_time: bool获取美股盘前/盘后历史 K 线(Qot_RequestHistoryKL.extendedTime)
session: Option<String>历史 K 线时段:NONE|RTH|ETH|ALL 或 0|1|2|3;OVERNIGHT/4 按 C++ OpenD 拒绝
begin: Option<String>开始日期 yyyy-MM-dd(默认 end - 回溯)
v1.4.83 §10 alias: --begin-time / --from
end: Option<String>结束日期 yyyy-MM-dd(默认今日)
v1.4.83 §10 alias: --end-time / --to
Trait Implementations§
Source§impl Args for KlineArgs
impl Args for KlineArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
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
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for KlineArgs
impl FromArgMatches for KlineArgs
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>
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>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for KlineArgs
impl RefUnwindSafe for KlineArgs
impl Send for KlineArgs
impl Sync for KlineArgs
impl Unpin for KlineArgs
impl UnsafeUnpin for KlineArgs
impl UnwindSafe for KlineArgs
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
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>
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>
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