Struct GetTicksPeriod

Source
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

Source§

fn consume_body<R: Read>(body: R) -> Result<Vec<Tick>>

Source§

impl CsvListBodyConsumer for GetTicksPeriod

Source§

type Output = Tick

Source§

fn consume<R: Read>(body: R) -> Result<Vec<Self::Output>>

Source§

impl Debug for GetTicksPeriod

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GetTicksPeriod

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl HasMethod for GetTicksPeriod

Source§

fn method(&self) -> String

Source§

impl Serialize for GetTicksPeriod

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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.

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.

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,