pub struct Kline {
pub open_time: i64,
pub open: Decimal,
pub high: Decimal,
pub low: Decimal,
pub close: Decimal,
pub volume: Decimal,
pub close_time: i64,
pub quote_asset_volume: Decimal,
pub number_of_trades: i64,
pub taker_buy_base_asset_volume: Decimal,
pub taker_buy_quote_asset_volume: Decimal,
pub ignore: Decimal,
}Expand description
A single kline.
Fields§
§open_time: i64The kline open time in milliseconds since Unix epoch.
open: DecimalThe kline open price.
high: DecimalThe kline high price.
low: DecimalThe kline low price.
close: DecimalThe kline close price.
volume: DecimalThe kline volume in secondary token.
close_time: i64The kline open time in milliseconds since Unix epoch.
quote_asset_volume: DecimalThe kline volume in primary token.
number_of_trades: i64The number of trades executed within the kline.
taker_buy_base_asset_volume: DecimalThe taker buy volume in secondary token.
taker_buy_quote_asset_volume: DecimalThe taker buy volume in primary token.
ignore: DecimalThe unknown value.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Kline
impl<'de> Deserialize<'de> for Kline
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 Kline
impl RefUnwindSafe for Kline
impl Send for Kline
impl Sync for Kline
impl Unpin for Kline
impl UnwindSafe for Kline
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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