/order endpoint and where each one appears in the request/response flow. Crypto and equity trades use the same objects. Equities add a few fields.
High-Level Model
You request an Order, which returns a Quote and, ifuserPublicKey is
provided, a Transaction to sign and submit. The response may include a
routePlan (one or more legs) and an executionMode (sync or async).
Execution Modes
For equity requests, a buy is
sync if the market maker with the best price has inventory and async otherwise, and a sell is always sync. See Equity Order Reference.
Entity Reference
Order Request (Query Parameters)
Core parameters:
Routing controls:
Execution controls:
Fees and accounts:
In
POST /swap, if you set destinationTokenAccount.address and want native SOL output, pass the wallet address (owner) instead of the wallet’s WSOL associated token account address.allowSyncExec, allowAsyncExec, destinationTokenAccount, outputCloseAuthority, and revertWallet have equity-specific effects. See Equity Request Parameters.
Transaction configuration:
Order Response (OrderResponse)
Equity Fields in the Order Response
A response settled by a market maker adds these fields to theOrderResponse:
The scaled fields are present only when the equity mint carries the Scaled UI Amount extension. Equity Response Fields defines how each is calculated.
Route Leg (RoutePlanLeg)
Each leg is either a DynamicRoutePlanLeg or SingleMarketRoutePlanLeg. Common fields:Order Status Response (OrderStatusResponse)
Returned byGET /order-status for an async equity order.
Get Order Status defines each
status.