[−][src]Enum lobster::OrderEvent
An event resulting from the execution of an order.
Variants
Unfilled(u128)
Indicating that the corresponding order was not filled. It is only sent in response to market orders.
Placed(u128)
Indicating that the corresponding order was placed on the order book. It is only send in response to limit orders.
Canceled(u128)
Indicating that the corresponding order was removed from the order book. It is only sent in response to cancel orders.
Indicating that the corresponding order was only partially filled. It is sent in response to market or limit orders.
Fields of PartiallyFilled
id: u128
The ID of the order this event is referring to.
filled_qty: u64
The filled quantity.
fills: Vec<FillMetadata>
A vector with information on the order fills.
Indicating that the corresponding order was filled completely. It is sent in response to market or limit orders.
Fields of Filled
id: u128
The ID of the order this event is referring to.
filled_qty: u64
The filled quantity.
fills: Vec<FillMetadata>
A vector with information on the order fills.
Trait Implementations
impl Clone for OrderEvent
[src]
fn clone(&self) -> OrderEvent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OrderEvent
[src]
impl PartialEq<OrderEvent> for OrderEvent
[src]
fn eq(&self, other: &OrderEvent) -> bool
[src]
fn ne(&self, other: &OrderEvent) -> bool
[src]
impl StructuralPartialEq for OrderEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for OrderEvent
impl Send for OrderEvent
impl Sync for OrderEvent
impl Unpin for OrderEvent
impl UnwindSafe for OrderEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,