How much token_out a swap returns right now: direct pools and the route through the wrapped native token, across Uniswap V2/V3 (PancakeSwap on BNB Chain) and every fee tier, with price impact and the pools on the route. Quotes only - nothing is built, signed or sent.

Paid per call via x402. Send without payment to get the exact price in the 402.

post/v1/tools/dex-quote

Request

  • Base URL: https://agents.dexl.io
  • URL: https://agents.dexl.io/v1/tools/dex-quote
  • Auth: API key in header X-Payment

Request body

chain'base' | 'arbitrum' | 'bsc' | 'robinhood'

Which chain to quote on.

token_instring required

ERC-20 address you sell (0x...). Use the wrapped native token for ETH/BNB.

token_outstring required

ERC-20 address you buy (0x...).

amount_instring required

Amount of token_in in whole units, e.g. "1.5".

Response

The tool output

Changes

No recorded changes to this operation across all 1 revision of this API.