pub struct KLineSnapshotMsg {
pub start: Timestamp,
pub end: Timestamp,
pub interval: Interval,
pub open: Decimal,
pub close: Decimal,
pub high: Decimal,
pub low: Decimal,
pub volume: Decimal,
pub turnover: Decimal,
pub confirm: bool,
pub timestamp: Timestamp,
}Expand description
A kline (candle).
Fields§
§start: TimestampStart time of the kline, milliseconds.
end: TimestampEnd time of the kline, milliseconds.
interval: IntervalKline interval.
open: DecimalOpen price.
close: DecimalClose price (the last price while the kline is open).
high: DecimalHighest price.
low: DecimalLowest price.
volume: DecimalVolume: contracts for derivatives, base coin for spot.
turnover: DecimalTurnover in the quote coin.
confirm: boolWhether the kline is closed.
timestamp: TimestampTime of the last trade in the kline, milliseconds.
Trait Implementations§
Source§impl Debug for KLineSnapshotMsg
impl Debug for KLineSnapshotMsg
Source§impl<'de> Deserialize<'de> for KLineSnapshotMsg
impl<'de> Deserialize<'de> for KLineSnapshotMsg
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
Source§impl PartialEq for KLineSnapshotMsg
impl PartialEq for KLineSnapshotMsg
impl StructuralPartialEq for KLineSnapshotMsg
Auto Trait Implementations§
impl Freeze for KLineSnapshotMsg
impl RefUnwindSafe for KLineSnapshotMsg
impl Send for KLineSnapshotMsg
impl Sync for KLineSnapshotMsg
impl Unpin for KLineSnapshotMsg
impl UnsafeUnpin for KLineSnapshotMsg
impl UnwindSafe for KLineSnapshotMsg
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