pub struct DollarBars { /* private fields */ }Expand description
utilities for rebinning candlesticks
Implementations§
Source§impl DollarBars
impl DollarBars
Sourcepub fn from_updates(ups: &[Update], dollar_interval: f32) -> DollarBars
pub fn from_updates(ups: &[Update], dollar_interval: f32) -> DollarBars
Generate a vector of candles sampled by dollar traded.
Trait Implementations§
Source§impl Clone for DollarBars
impl Clone for DollarBars
Source§fn clone(&self) -> DollarBars
fn clone(&self) -> DollarBars
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DollarBars
impl Debug for DollarBars
Source§impl PartialEq for DollarBars
impl PartialEq for DollarBars
impl StructuralPartialEq for DollarBars
Auto Trait Implementations§
impl Freeze for DollarBars
impl RefUnwindSafe for DollarBars
impl Send for DollarBars
impl Sync for DollarBars
impl Unpin for DollarBars
impl UnwindSafe for DollarBars
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