← 402arcade

GET /base/quote $0.005/call

Best-execution swap quotes on Base: every Uniswap V3 fee tier plus Aerodrome volatile and stable pools, with automatic WETH multi-hop routing. Returns the best route, per-venue breakdown, and effective price both directions. $0.005 per call — the price-check primitive for trading agents.

Parameters

namerequireddescription
tokenInyestoken address or ETH/WETH
tokenOutyestoken address or ETH/WETH
amountyeshuman-units amount of tokenIn

Example

GET /base/quote?tokenIn=ETH&tokenOut=0x8335…&amount=1

→ {"best":{"venue":"uniswap-v3","detail":"fee 0.01%","amountOutFormatted":"1873.87"},"price":{"USDC_per_WETH":1873.87},"block":"…"}

Payment (x402)

Call without payment to receive HTTP 402 with a base64 envelope in the payment-required header — price, payTo, network (USDC on Base), and I/O schemas. Pay automatically with @x402/fetch:

const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://402arcade.dev/base/quote?…");

No API keys. No accounts. Machine-readable: openapi.json · llms.txt · catalog