pub struct GetTicksPeriod {
pub code: String,
pub date: String,
pub end_date: String,
pub skip: bool,
}
Expand description
按时间段获取tick数据 股票部分, 支持 2010-01-01 至今的tick数据,提供买五卖五数据 期货部分, 支持 2010-01-01 至今的tick数据,提供买一卖一数据。 如果要获取主力合约的tick数据,可以先使用get_dominant_future获取主力合约对应的标的 期权部分,支持 2017-01-01 至今的tick数据,提供买五卖五数据 参数: code: 证券代码 date: 开始时间,格式2018-07-03或2018-07-03 10:40:00 end_date: 结束时间,格式2018-07-03或2018-07-03 10:40:00 skip: 默认为true,过滤掉无成交变化的tick数据; 当skip=false时,返回的tick数据会保留从2019年6月25日以来无成交有盘口变化的tick数据。 注: 如果时间跨度太大、数据量太多则可能导致请求超时,所有请控制好data-end_date之间的间隔!
Fields§
§code: String
§date: String
§end_date: String
§skip: bool
Trait Implementations§
Source§impl BodyConsumer<Vec<Tick>> for GetTicksPeriod
impl BodyConsumer<Vec<Tick>> for GetTicksPeriod
Source§impl CsvListBodyConsumer for GetTicksPeriod
impl CsvListBodyConsumer for GetTicksPeriod
Source§impl Debug for GetTicksPeriod
impl Debug for GetTicksPeriod
Source§impl<'de> Deserialize<'de> for GetTicksPeriod
impl<'de> Deserialize<'de> for GetTicksPeriod
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetTicksPeriod
impl RefUnwindSafe for GetTicksPeriod
impl Send for GetTicksPeriod
impl Sync for GetTicksPeriod
impl Unpin for GetTicksPeriod
impl UnwindSafe for GetTicksPeriod
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