nautilus_backtest::models::fee

Trait FeeModel

Source
pub trait FeeModel {
    // Required method
    fn get_commission(
        &self,
        order: &OrderAny,
        fill_quantity: Quantity,
        fill_px: Price,
        instrument: &InstrumentAny,
    ) -> Result<Money>;
}

Required Methods§

Source

fn get_commission( &self, order: &OrderAny, fill_quantity: Quantity, fill_px: Price, instrument: &InstrumentAny, ) -> Result<Money>

Implementors§