Swap quote (best route, fees shown)
swap_quoteWhat swapping one token for another would give right now, on Robinhood Chain (default), Solana (SOL, USDC, USDT and memecoins by mint address; picked automatically for those), Base, Ethereum or Arbitrum (ETH, WETH, USDC, USDT or a token address; pass chain). EVM chains: the best route across Uniswap v2/v3/v4, PancakeSwap, SushiSwap, Aerodrome, Curve and other DEXes. Solana: the best route across Solana DEXes. Routed by 0x, with the amount out and the minimum after slippage, the USD value, and every fee shown separately (Fivebar's 0.5%, the router's fee where it applies, and network gas). Flags token taxes and, if you pass your wallet as taker, a missing balance or approval. xStocks are coming soon: use stock_quote for their prices. Quote only: nothing is signed or sent; to swap, use swap_build.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buy | Yes | Token to buy, same forms as sell | |
| sell | Yes | Token to sell. Robinhood Chain: ETH, USDG, WETH or a token address. Solana: SOL, USDC, USDT or a mint address | |
| chain | No | Default robinhood (solana when given Solana tokens) | |
| taker | No | Optional: the wallet that would swap (0x address, or a Solana wallet on solana) | |
| amount | Yes | How much of the sell token, in whole units, e.g. '100' or '0.25' | |
| slippage_pct | No | Max slippage in percent, default 1 |