Enum trade_aggregation::By
source · pub enum By {
Base,
Quote,
}
Expand description
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§
Auto Trait Implementations§
impl Freeze for By
impl RefUnwindSafe for By
impl Send for By
impl Sync for By
impl Unpin for By
impl UnwindSafe for By
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