[][src]Struct binance_client::Kline

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,
}

Fields

open_time: i64open: Decimalhigh: Decimallow: Decimalclose: Decimalvolume: Decimalclose_time: i64quote_asset_volume: Decimalnumber_of_trades: i64taker_buy_base_asset_volume: Decimaltaker_buy_quote_asset_volume: Decimalignore: Decimal

Methods

impl Kline[src]

pub fn is_green(&self) -> bool[src]

pub fn is_red(&self) -> bool[src]

pub fn middle(&self) -> Decimal[src]

pub fn middle_body(&self) -> Decimal[src]

pub fn average(&self) -> Decimal[src]

Trait Implementations

impl Debug for Kline[src]

impl<'de> Deserialize<'de> for Kline[src]

Auto Trait Implementations

impl Send for Kline

impl Unpin for Kline

impl Sync for Kline

impl UnwindSafe for Kline

impl RefUnwindSafe for Kline

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.