Function swap_instruction

Source
pub fn swap_instruction(
    market: &Pubkey,
    payer: &Pubkey,
    base_mint: &Pubkey,
    quote_mint: &Pubkey,
    trader_base_account: &Pubkey,
    trader_quote_account: &Pubkey,
    in_atoms: u64,
    out_atoms: u64,
    is_base_in: bool,
    is_exact_in: bool,
    token_program_base: Pubkey,
    token_program_quote: Pubkey,
    include_global: bool,
) -> Instruction