pub struct TimeShareReq {
pub security_id: Option<u64>,
pub base_time: Option<u64>,
pub offset_from: Option<i32>,
pub offset_to: Option<i32>,
pub request_section: Option<u32>,
pub exright_type: Option<u32>,
pub req_section_list: Vec<u32>,
pub broker_id: Option<i32>,
}Expand description
分时拉取 - 请求
Fields§
§security_id: Option<u64>股票ID
base_time: Option<u64>基点时间戳。比如股票所属市场的当前交易日时间戳,按日圆整。
offset_from: Option<i32>起始的偏移交易日天数,与base_time配合使用。>0:基点时间往更新取,<0:基点时间往更旧取。
offset_to: Option<i32>结束的偏移交易日天数,offset_to >= offset_from 且 offset_to-offset_from < 10
request_section: Option<u32>请求交易阶段,见RequestSection枚举
exright_type: Option<u32>复权类型,见ExrightType枚举
req_section_list: Vec<u32>请求交易阶段,见RequestSection枚举(优先级:req_section_list > request_section),如果req_section_list不为空,request_section失效
broker_id: Option<i32>特别注意:req_section_list字段不支持REQUEST_SECTION_FULL !!! v1.4.110 GetRT active-pull: GetRT cache miss writes broker_id when querying crypto multi-broker time-share data.
券商id,未指定则默认为查询全球行情【目前只有数字货币】
Implementations§
Sourcepub fn security_id(&self) -> u64
pub fn security_id(&self) -> u64
Returns the value of security_id, or the default value if security_id is unset.
Sourcepub fn base_time(&self) -> u64
pub fn base_time(&self) -> u64
Returns the value of base_time, or the default value if base_time is unset.
Sourcepub fn offset_from(&self) -> i32
pub fn offset_from(&self) -> i32
Returns the value of offset_from, or the default value if offset_from is unset.
Sourcepub fn offset_to(&self) -> i32
pub fn offset_to(&self) -> i32
Returns the value of offset_to, or the default value if offset_to is unset.
Sourcepub fn request_section(&self) -> u32
pub fn request_section(&self) -> u32
Returns the value of request_section, or the default value if request_section is unset.
Sourcepub fn exright_type(&self) -> u32
pub fn exright_type(&self) -> u32
Returns the value of exright_type, or the default value if exright_type is unset.
Trait Implementations§
Source§fn clone(&self) -> TimeShareReq
fn clone(&self) -> TimeShareReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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.Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.