> 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.05 per call, settled in USDC on Base. The quickest responds in about 11ms 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://mcpfax-utility.bowling-anthony.workers.dev/v1/crypto-price https://httpay.xyz/api/motivational-degen https://base-intel-api.jakemaxsigal.workers.dev/gas https://api.x402node.dev/forex/rate/eur/jpy/eur-jpy https://api.x402node.dev/forex/rate/jpy/aud/jpy-aud https://base-intel-api.jakemaxsigal.workers.dev/pools/hot https://api.x402node.dev/forex/rate/cny/hkd/cny-hkd https://api.x402node.dev/forex/rate/gbp/eur/gbp-eur https://api.x402node.dev/forex/rate/hkd/cny/hkd-cny https://api.x402node.dev/forex/rate/aud/usd/aud-usd https://api.x402node.dev/forex/rate/usd/sgd/usd-sgd https://api.x402node.dev/forex/rate/usd/krw/usd-krw https://api.x402node.dev/forex/rate/usd/cad/usd-cad https://api.x402node.dev/forex/rate/usd/aud/usd-aud https://api.x402node.dev/crypto/convert/uni/usd/uni-usd https://api.x402node.dev/forex/rate/usd/jpy/usd-jpy https://api.x402node.dev/forex/rate/usd/gbp/usd-gbp https://api.x402node.dev/forex/rate/hkd/usd/hkd-usd https://api.x402node.dev/commodity/price/coffee/usd/coffee-usd https://api.x402node.dev/commodity/price/cocoa/usd/cocoa-usd https://api.x402node.dev/commodity/price/cattle/usd/cattle-usd https://api.x402node.dev/commodity/price/gold/usd/xau-usd https://api.x402node.dev/commodity/price/gas/usd/natgas-usd https://api.x402node.dev/commodity/price/soybean/usd/soybean-usd https://api.x402node.dev/commodity/price/hogs/usd/hogs-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/stock/quote/xlf https://api.x402node.dev/stock/quote/vti https://api.x402node.dev/stock/quote/tsla https://api.x402node.dev/stock/quote/nvda https://api.x402node.dev/stock/quote/jpm https://api.x402node.dev/stock/quote/iwm https://api.x402node.dev/stock/quote/dis https://api.x402node.dev/stock/quote/dia https://api.x402node.dev/stock/quote/amzn https://api.x402node.dev/stock/quote/spy https://api.x402node.dev/ai/json-repair https://api.x402node.dev/market/funding-rates https://api.x402node.dev/defi/swap-quote https://api.x402node.dev/defi/price-impact https://api.x402node.dev/market/funding-rank https://api.x402node.dev/market/perp-volume https://api.x402node.dev/chain/holder-stats https://api.x402node.dev/defi/dex-pool https://api.x402node.dev/pool/search https://api.x402node.dev/pool/info https://api.x402node.dev/wallet/tx-verify 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.05 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