[][src]Enum lobster::OrderType

pub enum OrderType {
    Market {
        id: u128,
        side: Side,
        qty: u64,
    },
    Limit {
        id: u128,
        side: Side,
        qty: u64,
        price: u64,
    },
    Cancel(u128),
}

An order to be executed by the order book.

Variants

Market

A market order, which is either filled immediately (even partially), or canceled.

Fields of Market

id: u128

The unique ID of this order.

side: Side

The order side. It will be matched against the resting orders on the other side of the order book.

qty: u64

The order quantity.

Limit

A limit order, which is either filled immediately, or added to the order book.

Fields of Limit

id: u128

The unique ID of this order.

side: Side

The order side. It will be matched against the resting orders on the other side of the order book.

qty: u64

The order quantity.

price: u64

The limit price. The order book will only match this order with other orders at this price or better.

Cancel(u128)

A cancel order, which removes the order with the specified ID from the order book.

Trait Implementations

impl Clone for OrderType[src]

impl Copy for OrderType[src]

impl Debug for OrderType[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.