pub fn init_market_maker_account(
    program: &Program,
    market_maker_account_owner: Pubkey,
    max_orders_supported: u64,
    encryption_pub_key: [u8; 32],
    market_maker_data_account: Pubkey
) -> Instruction
Expand description

This instruction initializes the market maker account

The market maker account tracks state specific to the market maker’s market making activities. This instruction must be called prior to a market maker being active on DFlow.

Arguments

  • market_maker_account_owner The public key of the market_maker_account_owner account.
  • max_orders_supported The maximum number of orders supported in the market maker’s queue of orders
  • encryption_pub_key The market maker’s 256-bit X25519 public key which will be used by retail traders to encrypt their order details
  • market_maker_data_account The account storing state specific to the market maker. This account must be owned by the DFlow program, and this account must be initialized by calling the initialize market maker instruction. This account is expected to be zeroed out upon the start of instruction processing

Returns an instruction