Function dex_v3::instruction::new_order[][src]

pub fn new_order(
    dex_program_id: Pubkey,
    agnostic_orderbook_program_id: Pubkey,
    market_account: Pubkey,
    market_signer: Pubkey,
    orderbook: Pubkey,
    event_queue: Pubkey,
    bids: Pubkey,
    asks: Pubkey,
    base_vault: Pubkey,
    quote_vault: Pubkey,
    user_account: Pubkey,
    user_token_account: Pubkey,
    user_account_owner: Pubkey,
    discount_account: Option<Pubkey>,
    new_order_params: Params
) -> Instruction
Expand description

Execute a new order on the orderbook.

Depending on the provided parameters, the program will attempt to match the order with existing entries in the orderbook, and then optionally post the remaining order.