pub struct OrderEmulator { /* private fields */ }
Implementations§
Source§impl OrderEmulator
impl OrderEmulator
pub fn new( clock: Rc<RefCell<dyn Clock>>, cache: Rc<RefCell<Cache>>, msgbus: Rc<RefCell<MessageBus>>, manager: OrderManager, debug: bool, ) -> Self
pub fn subscribed_quotes(&self) -> Vec<InstrumentId>
pub fn subscribed_trades(&self) -> Vec<InstrumentId>
pub fn get_submit_order_commands(&self) -> HashMap<ClientOrderId, SubmitOrder>
pub fn get_matching_core( &self, instrument_id: &InstrumentId, ) -> Option<&OrderMatchingCore>
pub fn on_start(&mut self) -> Result<()>
pub fn on_event(&mut self, event: OrderEventAny)
pub const fn on_stop(&self)
pub fn on_reset(&mut self)
pub const fn on_dispose(&self)
pub fn execute(&mut self, command: TradingCommand)
pub fn create_matching_core( &mut self, instrument_id: InstrumentId, price_increment: Price, ) -> OrderMatchingCore
pub fn on_order_book_deltas(&mut self, deltas: OrderBookDeltas)
Auto Trait Implementations§
impl Freeze for OrderEmulator
impl !RefUnwindSafe for OrderEmulator
impl !Send for OrderEmulator
impl !Sync for OrderEmulator
impl Unpin for OrderEmulator
impl !UnwindSafe for OrderEmulator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more