v13

latestOpenAPI 3.1.0raw.githubusercontent.com2026-04-0815390371.2 KB
Gateway Swaps

Get Swap Quote

Get a price quote for a swap via router (Jupiter, 0x).

Example: connector: 'jupiter' network: 'solana-mainnet-beta' trading_pair: 'SOL-USDC' side: 'BUY' amount: 1 slippage_pct: 1

Returns: Quote with price, expected output amount, and gas estimate

post/gateway/swap/quote

Request body

connectorstring required

DEX router connector (e.g., 'jupiter', '0x')

networkstring required

Network ID in 'chain-network' format (e.g., 'solana-mainnet-beta', 'ethereum-mainnet')

trading_pairstring required

Trading pair in BASE-QUOTE format (e.g., 'SOL-USDC')

sidestring required

Trade side: 'BUY' or 'SELL'

Response

Successful Response

basestring required

Base token symbol

quotestring required

Quote token symbol

pricestring required

Quoted price (base/quote)

amountstring required

Amount specified in request (BUY: base amount to receive, SELL: base amount to sell)

amount_instring nullable

Actual input amount (BUY: quote to spend, SELL: base to sell)

amount_outstring nullable

Actual output amount (BUY: base to receive, SELL: quote to receive)

expected_amountstring nullable

Deprecated: use amount_out instead

slippage_pctstring required

Applied slippage percentage

gas_estimatestring nullable

Estimated gas cost