pub struct SeriesData {
pub is_multi: bool,
pub is_tick: bool,
pub symbols: Vec<String>,
pub single: Option<KlineSeriesData>,
pub multi: Option<MultiKlineSeriesData>,
pub tick_data: Option<TickSeriesData>,
}Expand description
序列数据(统一接口)
Fields§
§is_multi: bool是否为多合约
is_tick: bool是否为Tick数据
symbols: Vec<String>合约列表
single: Option<KlineSeriesData>单合约K线数据
multi: Option<MultiKlineSeriesData>多合约K线数据
tick_data: Option<TickSeriesData>Tick数据
Implementations§
Source§impl SeriesData
impl SeriesData
Sourcepub fn get_symbol_klines(&self, symbol: &str) -> Option<&KlineSeriesData>
pub fn get_symbol_klines(&self, symbol: &str) -> Option<&KlineSeriesData>
获取指定合约的K线数据
Trait Implementations§
Source§impl Clone for SeriesData
impl Clone for SeriesData
Source§fn clone(&self) -> SeriesData
fn clone(&self) -> SeriesData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SeriesData
impl RefUnwindSafe for SeriesData
impl Send for SeriesData
impl Sync for SeriesData
impl Unpin for SeriesData
impl UnwindSafe for SeriesData
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