Get Swap Quote
Changed onGet a price quote for a swap.
Example: connector: 'jupiter' (or typed: 'jupiter/router', 'meteora/clmm', 'raydium/amm') network: 'solana-mainnet-beta' trading_pair: 'SOL-USDC' side: 'BUY' amount: 1 slippage_pct: 1 (optional; omit to use the connector's configured slippagePct) extra_params: {"approximateIfNoExactOut": false} # Solana routers
Returns: Quote with price, expected output amount, and execution-safety fields
Request
- Base URLhttp://localhost:8000
- URLhttp://localhost:8000/gateway/swap/quote
- AuthHTTP basic
Request body
Response
Successful Response
Changes
- breaking
the response property
became optional for the status - breaking
response property
slippage_pctlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the new optional request property
- info
the
request property default value1was removed - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the
response's property pattern^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$was removed for the status
- breaking
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info