pub struct TestOrderEventStubs;
Implementations§
Source§impl TestOrderEventStubs
impl TestOrderEventStubs
pub fn submitted(order: &OrderAny, account_id: AccountId) -> OrderEventAny
pub fn accepted( order: &OrderAny, account_id: AccountId, venue_order_id: VenueOrderId, ) -> OrderEventAny
Sourcepub fn 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
pub fn 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
§Panics
Panics if parsing the fallback price string fails or unwrapping default values fails.
Trait Implementations§
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