> Token swap quote
// Returns a quote for swapping one token for another including price, slippage, and route
Returns a quote for swapping one token for another including price, slippage, and route. Agents can request it by capability ID defi.swap_quote, or by plain intent — EntRoute resolves phrases like “swap quote”, “token swap” and “dex quote” to this capability.
EntRoute currently lists 50+ endpoints from 5 providers for defi.swap_quote, priced from $0.001 to $0.5 per call, settled in USDC on Base. The quickest responds in about 13ms at the 95th percentile. Every endpoint below is re-probed every 10 minutes for a valid 402 payment challenge; the ordering blends measured success rate, latency and price rather than provider claims.
These phrases resolve to this capability with intent-based discovery.
curl -X POST https://api.entroute.com/discover \ -H "Content-Type: application/json" \ -d '{"capability_id": "defi.swap_quote"}'
https://soldefi.thomenz.me/v1/solana/swap/build https://mcpfax-utility.bowling-anthony.workers.dev/v1/stock-quote https://base-intel-api.jakemaxsigal.workers.dev/gas https://api.x402node.dev/forex/rate/nzd/usd/nzd-usd https://api.x402node.dev/forex/rate/cny/hkd/cny-hkd https://api.x402node.dev/crypto/convert/uni/usd/uni-usd https://api.x402node.dev/forex/rate/usd/chf/usd-chf https://api.x402node.dev/forex/rate/eur/jpy/eur-jpy https://api.x402node.dev/forex/rate/eur/gbp/eur-gbp https://api.x402node.dev/forex/rate/cny/usd/cny-usd https://api.x402node.dev/forex/rate/jpy/usd/jpy-usd https://api.x402node.dev/forex/rate/usd/sgd/usd-sgd https://api.x402node.dev/forex/rate/usd/nzd/usd-nzd https://api.x402node.dev/forex/rate/gbp/eur/gbp-eur https://api.x402node.dev/forex/rate/usd/cny/usd-cny https://api.x402node.dev/forex/rate/hkd/usd/hkd-usd https://base-intel-api.jakemaxsigal.workers.dev/pools/hot https://api.x402node.dev/forex/rate/usd/jpy/usd-jpy https://api.x402node.dev/forex/rate/usd/cad/usd-cad https://api.x402node.dev/commodity/price/cocoa/usd/cocoa-usd https://api.x402node.dev/commodity/price/silver/usd/xag-usd https://api.x402node.dev/commodity/price/platinum/usd/xpt-usd https://api.x402node.dev/commodity/price/palladium/usd/xpd-usd https://api.x402node.dev/commodity/price/gold/usd/xau-usd https://api.x402node.dev/stock/quote/xlf https://api.x402node.dev/stock/quote/wmt https://api.x402node.dev/stock/quote/amzn https://api.x402node.dev/stock/quote/aapl https://api.x402node.dev/stock/quote/msft https://api.x402node.dev/stock/quote/dia https://api.x402node.dev/commodity/price/wheat/usd/wheat-usd https://api.x402node.dev/commodity/price/cattle/usd/cattle-usd https://api.x402node.dev/commodity/price/wti/usd/wti-usd https://api.x402node.dev/stock/quote/jpm https://api.x402node.dev/stock/quote/iwm https://api.x402node.dev/stock/quote/intc https://api.x402node.dev/commodity/price/corn/usd/corn-usd https://api.x402node.dev/commodity/price/coffee/usd/coffee-usd https://api.x402node.dev/stock/quote/ko https://api.x402node.dev/stock/quote/qqq https://api.x402node.dev/stock/quote/nvda https://api.x402node.dev/stock/quote/googl https://api.x402node.dev/stock/quote/nflx https://api.x402node.dev/stock/quote/amd https://api.x402node.dev/defi/dex-volume https://api.x402node.dev/chain/gas-estimate https://api.x402node.dev/market/perp-volume https://api.x402node.dev/pool/day-data https://api.x402node.dev/wallet/tx-verify https://arb.axryl.com/opportunities/json Use this capability in your agent or application:
Frequently asked questions about Token swap quote
How much does a token swap quote API call cost?
Endpoints listed for defi.swap_quote on EntRoute are priced from $0.001 to $0.5 per call. Payment is per request — there is no subscription, account or API key. Prices shown are read from each endpoint's live 402 response, not from a provider-supplied catalogue.
How do AI agents pay for token swap quote endpoints?
Via the x402 protocol. The agent calls the endpoint, receives an HTTP 402 Payment Required response describing the price and recipient, signs a stablecoin payment (USDC on Base), and retries the request with proof of payment. The whole exchange takes seconds and needs no human approval.
How many providers offer token swap quote?
50+ endpoints are currently listed for defi.swap_quote across 5 providers. That number moves as endpoints are added and as failing ones are demoted.
Are these token swap quote endpoints verified?
Each one is probed every 10 minutes to confirm it still returns a well-formed 402 challenge on a payable network. Endpoints whose 7-day success rate drops below 50% are moved out of the ranked list into fallbacks with an explicit exclusion reason, so an agent can decide whether to retry them.
Returns DeFi portfolio including token balances, LP positions, and protocol positions for a wallet
Returns current price and market data for DeFi tokens across DEXs
Returns a ready-to-sign transaction payload for DeFi operations like swaps, stakes, or claims
Returns available yield farming and staking opportunities with APY and risk data