[][src]Enum lobster::OrderEvent

pub enum OrderEvent {
    Unfilled {
        id: u128,
    },
    Placed {
        id: u128,
    },
    Canceled {
        id: u128,
    },
    PartiallyFilled {
        id: u128,
        filled_qty: u64,
        fills: Vec<FillMetadata>,
    },
    Filled {
        id: u128,
        filled_qty: u64,
        fills: Vec<FillMetadata>,
    },
}

An event resulting from the execution of an order.

Variants

Unfilled

Indicating that the corresponding order was not filled. It is only sent in response to market orders.

Fields of Unfilled

id: u128

The ID of the order this event is referring to.

Placed

Indicating that the corresponding order was placed on the order book. It is only send in response to limit orders.

Fields of Placed

id: u128

The ID of the order this event is referring to.

Canceled

Indicating that the corresponding order was removed from the order book. It is only sent in response to cancel orders.

Fields of Canceled

id: u128

The ID of the order this event is referring to.

PartiallyFilled

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.

Filled

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]

impl Debug for OrderEvent[src]

impl PartialEq<OrderEvent> for OrderEvent[src]

impl StructuralPartialEq for OrderEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.