pub struct KlineData {Show 17 fields
pub start_time: u64,
pub close_time: u64,
pub symbol: String,
pub interval: String,
pub first_trade_id: i64,
pub last_trade_id: i64,
pub open: String,
pub close: String,
pub high: String,
pub low: String,
pub volume: String,
pub trade_count: u64,
pub is_closed: bool,
pub quote_volume: String,
pub taker_buy_volume: String,
pub taker_buy_quote_volume: String,
pub ignore: String,
}Expand description
Inner kline data nested under the k field of a KlineEvent.
Fields§
§start_time: u64§close_time: u64§symbol: String§interval: StringInterval string e.g. "1m", "1h".
first_trade_id: i64§last_trade_id: i64§open: String§close: String§high: String§low: String§volume: String§trade_count: u64§is_closed: bool§quote_volume: String§taker_buy_volume: String§taker_buy_quote_volume: String§ignore: String"B" field from the payload, marked “Ignore” in the V3 docs.
Exposed for forward compatibility; do not rely on its content.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KlineData
impl<'de> Deserialize<'de> for KlineData
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 KlineData
impl RefUnwindSafe for KlineData
impl Send for KlineData
impl Sync for KlineData
impl Unpin for KlineData
impl UnsafeUnpin for KlineData
impl UnwindSafe for KlineData
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more