pub trait BarAggregator {
// Required methods
fn bar_type(&self) -> BarType;
fn update(&mut self, price: Price, size: Quantity, ts_event: UnixNanos);
// Provided methods
fn handle_quote(&mut self, quote: QuoteTick) { ... }
fn handle_trade(&mut self, trade: TradeTick) { ... }
}
Required Methods§
Provided Methods§
Sourcefn handle_quote(&mut self, quote: QuoteTick)
fn handle_quote(&mut self, quote: QuoteTick)
Updates the aggregator with the given quote.
Sourcefn handle_trade(&mut self, trade: TradeTick)
fn handle_trade(&mut self, trade: TradeTick)
Updates the aggregator with the given trade.