Enum trade_aggregation::By[][src]

pub enum By {
    Base,
    Quote,
}

Defines how to aggregate trade size either by Base currency or Quote Currency assumes trades sizes are denoted in Quote e.g.: buy 10 contracts of BTC would be trade size of 10

Variants

Base

when aggregating by Base, divide size by price for volume sum

Quote

when aggregating by Quote, take the raw trade size for volume sum as the assumption is that Trade size is denoted in Quote

Trait Implementations

impl Clone for By[src]

impl Copy for By[src]

impl Debug for By[src]

Auto Trait Implementations

impl RefUnwindSafe for By

impl Send for By

impl Sync for By

impl Unpin for By

impl UnwindSafe for By

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.