Enum agnostic_orderbook::state::Event  [−][src]
pub enum Event {
    Fill {
        taker_side: Side,
        maker_order_id: u128,
        quote_size: u64,
        base_size: u64,
        maker_callback_info: Vec<u8>,
        taker_callback_info: Vec<u8>,
    },
    Out {
        side: Side,
        order_id: u128,
        base_size: u64,
        delete: bool,
        callback_info: Vec<u8>,
    },
}Expand description
Events are the primary output of the asset agnostic orderbook
Variants
A fill event describes a match between a taker order and a provider order
Show fields
Fields of Fill
taker_side: Sidemaker_order_id: u128The order id of the maker order
quote_size: u64The total quote size of the transaction
base_size: u64The total base size of the transaction
maker_callback_info: Vec<u8>The callback information for the maker
taker_callback_info: Vec<u8>The callback information for the taker
An out event describes an order which has been taken out of the orderbook
Implementations
Used to serialize an event object into a generic byte writer.
Used to deserialize an event object from bytes.
An event queue is divided into slots. The size of these slots depend on the particular market’s callback_info_len constant.