Trait trade_aggregation::Aggregator[][src]

pub trait Aggregator {
    fn update(&mut self, trade: &Trade) -> Option<Candle>;
}

Defines the needed methods for any online aggregator

Required methods

fn update(&mut self, trade: &Trade) -> Option<Candle>[src]

Adds a new trade to aggregation Returns Some(Candle) only when a new candle has been created, otherwise it returns None

Loading content...

Implementors

impl Aggregator for TimeAggregator[src]

impl Aggregator for VolumeAggregator[src]

Loading content...