pub struct HistoryRequest {
pub symbol: String,
pub exchange: Exchange,
pub start: DtNs,
pub end: Option<DtNs>,
pub interval: Option<Interval>,
}Expand description
发往网关的历史数据请求。
Fields§
§symbol: String合约代码
exchange: Exchange交易所
start: DtNs起点(UTC 纪元纳秒)
end: Option<DtNs>终点(缺省 None)
interval: Option<Interval>K 线间隔(缺省 None)
Implementations§
Trait Implementations§
Source§impl Clone for HistoryRequest
impl Clone for HistoryRequest
Source§impl Debug for HistoryRequest
impl Debug for HistoryRequest
Source§impl Default for HistoryRequest
impl Default for HistoryRequest
Source§impl PartialEq for HistoryRequest
impl PartialEq for HistoryRequest
impl StructuralPartialEq for HistoryRequest
Auto Trait Implementations§
impl Freeze for HistoryRequest
impl RefUnwindSafe for HistoryRequest
impl Send for HistoryRequest
impl Sync for HistoryRequest
impl Unpin for HistoryRequest
impl UnsafeUnpin for HistoryRequest
impl UnwindSafe for HistoryRequest
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