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: AccountTag
Identifies the account as a MarketState
object.
The required signer for all market operations.
event_queue: Pubkey
The public key of the orderbook’s event queue account
bids: Pubkey
The public key of the orderbook’s bids account
asks: Pubkey
The public key of the orderbook’s asks account
callback_id_len: u64
The length of an order actor’s callback identifier.
callback_info_len: u64
The length of an order’s callback metadata.
fee_budget: u64
The 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: u64
The amount of lamports the market account was created with.
min_base_order_size: u64
The minimum order size that can be inserted into the orderbook after matching.