pub fn init_retail_account(
    program: &Program,
    max_orders_supported: u64,
    retail_data_account: Pubkey,
    retail_account_owner: Pubkey
) -> Instruction
Expand description

This instruction initializes the retail traders account.

The retail data account tracks state specific to the retail trader’s trading activities on DFlow.

Arguments

  • max_orders_supported The maximum number of orders allowed to be active at once by a retail trader
  • retail_data_account The retail data account holds state specific to the retail trader. This account is expected to be zeroed out upon the start of instruction processing
  • retail_account_owner The public key of the retail trader. This account is a signer for the instruction

Returns an instruction