Trait trade_aggregation::ModularCandle

source ·
pub trait ModularCandle<T: TakerTrade>: Clone + Default {
    // Required methods
    fn update(&mut self, trade: &T);
    fn reset(&mut self);
}
Expand description

A modular candle that can be composed of multiple components Is generic over the type of trade it accepts during the update step, as long as it implements the TakerTrade trait

Required Methods§

source

fn update(&mut self, trade: &T)

Updates the candle information with trade information

source

fn reset(&mut self)

Resets the state of the candle

Object Safety§

This trait is not object safe.

Implementors§