Market orders
Swap now at the quoted price, protected by a slippage floor.
The create endpoint accepts orderType: "market". Today a market order is a short-lived intent whose minimum is the quote minus the user's slippage tolerance, so it fills on the next solver cycle or refunds.
Recommended flow
POST /api/v1/quotefor the pair and size.- Set the minimum to
amountOut × (1 − slippage). - Create the intent with a short
duration(a few blocks). - Fund, then watch for
intent:filled.
Planned
- Waterfall split across Mesh and Cauldron inside a single market fill (
meshPct/cauldronPctfrom the quote). - Direct Cauldron trades via
POST /api/v1/cauldron/build-tradefor sizes Mesh can't serve.