Struct agnostic_orderbook::state::MarketState  [−][src]
pub struct MarketState {
    pub tag: AccountTag,
    pub caller_authority: Pubkey,
    pub event_queue: Pubkey,
    pub bids: Pubkey,
    pub asks: Pubkey,
    pub callback_id_len: u64,
    pub callback_info_len: u64,
    pub fee_budget: u64,
    pub initial_lamports: u64,
    pub min_base_order_size: u64,
}Expand description
The orderbook market’s central state
Fields
tag: AccountTagIdentifies the account as a MarketState object.
The required signer for all market operations.
event_queue: PubkeyThe public key of the orderbook’s event queue account
bids: PubkeyThe public key of the orderbook’s bids account
asks: PubkeyThe public key of the orderbook’s asks account
callback_id_len: u64The length of an order actor’s callback identifier.
callback_info_len: u64The length of an order’s callback metadata.
fee_budget: u64The current budget of fees that have been collected. Cranker rewards are taken from this. This value allows for a verification that the fee was payed in the caller program runtime while not having to add a CPI call to the serum-core.
initial_lamports: u64The amount of lamports the market account was created with.
min_base_order_size: u64The minimum order size that can be inserted into the orderbook after matching.