Trait MarketSimulator

Source
pub trait MarketSimulator {
    // Required methods
    fn sell_quote(&self, num_lots_quote: u64) -> SimulationSummaryInLots;
    fn sell_base(&self, num_lots_base: u64) -> SimulationSummaryInLots;
    fn simulate_market_sell(
        &self,
        side: Side,
        size_in_lots: u64,
    ) -> SimulationSummaryInLots;
}

Required Methods§

Source

fn sell_quote(&self, num_lots_quote: u64) -> SimulationSummaryInLots

Source

fn sell_base(&self, num_lots_base: u64) -> SimulationSummaryInLots

Source

fn simulate_market_sell( &self, side: Side, size_in_lots: u64, ) -> SimulationSummaryInLots

Implementations on Foreign Types§

Source§

impl MarketSimulator for Ladder

Source§

fn sell_quote(&self, num_lots_quote: u64) -> SimulationSummaryInLots

Source§

fn sell_base(&self, num_lots_base: u64) -> SimulationSummaryInLots

Source§

fn simulate_market_sell( &self, side: Side, size_in_lots: u64, ) -> SimulationSummaryInLots

Implementors§