Price a swap
get_swap_priceWhat swapping one token for another on Base would return right now through 0x (the route the website uses): amount out, the fees (Panda 0.15% in the sold token + 0x 0.15%) and the sources. No wallet needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to sell, in whole tokens, e.g. "25" or "0.01". | |
| buy_token | Yes | Token to buy: a symbol (USDC, WETH, AERO, BNKR, cbBTC) or a token address on Base. | |
| sell_token | Yes | Token to sell: a symbol (USDC, WETH, AERO, BNKR, cbBTC) or a token address on Base. | |
| slippage_bps | No | Optional slippage tolerance in basis points (default 50 = 0.5%). |