Skip to main content
The ixWrapperMarketOffer instruction executes a market order on the Exponent orderbook.

Usage

Required Parameters

Optional Parameters

Returns

Returns an object with:
  • ix - The TransactionInstruction that executes the market order
  • setupIxs - An array of setup instructions to run before ix:
    • setupIxs[0] - Creates the PT associated token account for the trader (if it doesn’t exist)
    • setupIxs[1] - Creates the YT associated token account for the trader (if it doesn’t exist)
    • setupIxs[2] - Creates the SY associated token account for the trader (if it doesn’t exist)