pub struct TestOrderEventStubs;
Implementations§
Source§impl TestOrderEventStubs
impl TestOrderEventStubs
pub fn order_submitted(order: &OrderAny, account_id: AccountId) -> OrderEventAny
pub fn order_accepted( order: &OrderAny, account_id: AccountId, venue_order_id: VenueOrderId, ) -> OrderEventAny
pub fn order_filled( order: &OrderAny, instrument: &InstrumentAny, trade_id: Option<TradeId>, position_id: Option<PositionId>, last_px: Option<Price>, last_qty: Option<Quantity>, liquidity_side: Option<LiquiditySide>, commission: Option<Money>, ts_filled_ns: Option<UnixNanos>, account_id: Option<AccountId>, ) -> OrderEventAny
Auto Trait Implementations§
impl Freeze for TestOrderEventStubs
impl RefUnwindSafe for TestOrderEventStubs
impl Send for TestOrderEventStubs
impl Sync for TestOrderEventStubs
impl Unpin for TestOrderEventStubs
impl UnwindSafe for TestOrderEventStubs
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