pub struct OrderBook {
pub security_id: u32,
pub ask: HalfBook,
pub bid: HalfBook,
}Fields§
§security_id: u32§ask: HalfBook§bid: HalfBookImplementations§
Source§impl OrderBook
impl OrderBook
pub fn new(security_id: u32) -> Self
pub fn create_buy_order( &mut self, order_id: Uuid, resting_order: OrderNode, ) -> Result<usize, Error>
pub fn create_sell_order( &mut self, order_id: Uuid, resting_order: OrderNode, ) -> Result<usize, Error>
pub fn cancel_order( &mut self, order_id: Uuid, order: CancelOrder, ) -> Result<(), Error>
pub fn modify_order( &mut self, order_id: Uuid, order: ModifyOrder, ) -> Result<Option<ModifyOutcome>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OrderBook
impl RefUnwindSafe for OrderBook
impl Send for OrderBook
impl Sync for OrderBook
impl Unpin for OrderBook
impl UnwindSafe for OrderBook
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