Struct agnostic_orderbook::state::OrderSummary[][src]

pub struct OrderSummary {
    pub posted_order_id: Option<u128>,
    pub total_base_qty: u64,
    pub total_quote_qty: u64,
    pub total_base_qty_posted: u64,
}
Expand description

This struct is written back into the event queue’s register after new_order or cancel_order.

In the case of a new order, the quantities describe the total order amounts which were either matched against other orders or written into the orderbook.

In the case of an order cancellation, the quantities describe what was left of the order in the orderbook.

Fields

posted_order_id: Option<u128>

When applicable, the order id of the newly created order.

total_base_qty: u64total_quote_qty: u64total_base_qty_posted: u64

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Serialize this instance into a vector of bytes.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.