GET /quote
Sends a GET request to the Jupiter API to get the best priced quote.
Query parameters
Input token mint address
Output token mint address
The amount to swap, have to factor in the token decimals.
The slippage in basis points, 1 basis point is 0.01%. If the output token amount exceeds the slippage then the swap transaction will fail.
Automatically calculate the slippage based on pairs.
Automatic slippage collision value.
Compute auto slippage value without using it.
Max slippage in basis points for auto slippage calculation. Default is 400.
(ExactIn or ExactOut) Defaults to ExactIn. ExactOut is for supporting use cases where you need an exact token amount, like payments. In this case the slippage is on the input token.
Default is that all DEXes are included. You can pass in the DEXes that you want to include only and separate them by ,. You can check out the full list here.
Default is that all DEXes are included. You can pass in the DEXes that you want to exclude and separate them by ,. You can check out the full list here.
Restrict intermediate tokens to a top token set that has stable liquidity. This will help to ease potential high slippage error rate when swapping with minimal impact on pricing.
Default is false. Direct Routes limits Jupiter routing to single hop routes only.
Default is false. Instead of using versioned transaction, this will use the legacy transaction.
If you want to charge the user a fee, you can specify the fee in BPS. Fee % is taken out of the output token.
Rough estimate of the max accounts to be used for the quote, so that you can compose with your own accounts
Default is false. Miminize slippage attempts to find routes with lower slippage.
Default is false. Enabling it would only consider markets with high liquidity to reduce slippage.
Default is false. Uses categorized top token lists as intermediate tokens to optimize routing paths, replacing the old static top token list. This helps achieve better pricing while maintaining route reliability.
Response
Successful response