Struct binance_client::Kline [−][src]
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
impl Kline[src]
pub fn is_green(&self) -> bool[src]
If the kline is green, that is, close >= open.
pub fn is_red(&self) -> bool[src]
If the kline is red, that is, close < open.
pub fn middle(&self) -> Decimal[src]
The average of low and high.
pub fn middle_body(&self) -> Decimal[src]
The average of open and close.
pub fn average(&self) -> Decimal[src]
The average of open, high, low, and close.
Trait Implementations
impl Debug for Kline[src]
impl<'de> Deserialize<'de> for Kline[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Kline[src]
impl Send for Kline[src]
impl Sync for Kline[src]
impl Unpin for Kline[src]
impl UnwindSafe for Kline[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,