Fast mode
Setslippage=10000 to activate fast mode. The API skips gas estimation, price impact calculation, and USD valuation — returning only path and transaction (no stats). Use this when latency matters more than quote details.
Sign everything
Always sign and submitapprove and extra transactions when present in the quote response. Skipping them will cause the trade to revert.
Execute immediately
Quotes expire after 30 seconds. Sign and call/api/v2/execute as soon as you receive the quote — nonces and gas prices go stale quickly.
Use simulation
Setsimulation: true on execute to catch reverts before broadcasting. This adds minimal latency but prevents failed transactions from hitting the chain and consuming gas.
Slippage guidelines
| Scenario | Recommended slippage |
|---|---|
| Blue-chip tokens (ETH, major stables) | 100-300 bps (1-3%) |
| Mid-cap tokens | 500 bps (5%) |
| Low-liquidity / meme tokens | 1000-2000 bps (10-20%) |
| Pump.fun tokens (Solana) | 1000-3000 bps |
| Fast mode (no stats) | 10000 bps |
Check result.success
HTTP 200 does not mean the trade succeeded. Always check result.success — the response body contains the actual execution status.
MEV protection
Enablemev: true for large trades on ETH and BSC. This routes the transaction through a private mempool to avoid sandwich attacks. Not needed on L2s where MEV is less prevalent.
Integrator fees
Use theintegrator and fee params to monetize your integration. The fee is split 80/20 on-chain — 80% to your wallet, 20% to the protocol. No off-chain settlement required.
Use /api/v2/value for price checks
If you only need a price estimate without building a transaction, use /api/v2/value instead of /api/v2/quote. It returns USD values and output amounts without gas estimation or transaction building — faster and lighter.
Chain auto-detection
You can omit thechain parameter on /api/v2/quote — the API will detect the chain from the token address. Explicit chain is still recommended for reliability and to avoid ambiguity with tokens deployed on multiple chains.
.png?fit=max&auto=format&n=vFD3JaMmh-jP1DJL&q=85&s=eb89fc3bbcbf83018c6491d27144e343)