GET /quote
Sends a GET request to the Jupiter API to get the best priced quote.
Query Parameters |
---|
inputMint string — REQUIREDInput token mint address |
outputMint string — REQUIREDOutput token mint address |
amount integer — REQUIREDThe amount to swap, have to factor in the token decimals. |
slippageBps integerDefault is 50 unless |
swapMode stringPossible values: [ (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. |
dexes string[]Default is that all DEXes are included. You can pass in the DEXes that you want to include only and separate them by |
excludeDexes string[]Default is that all DEXes are included. You can pass in the DEXes that you want to exclude and separate them by |
restrictIntermediateTokens booleanRestrict 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. |
onlyDirectRoutes booleanDefault is false. Direct Routes limits Jupiter routing to single hop routes only. |
asLegacyTransaction booleanDefault is false. Instead of using versioned transaction, this will use the legacy transaction. |
platformFeeBps integerIf you want to charge the user a fee, you can specify the fee in BPS. Fee % is taken out of the output token. |
maxAccounts integerRough estimate of the max accounts to be used for the quote, so that you can compose with your own accounts |
autoSlippage booleanDefault is false. By setting this to |
maxAutoSlippageBps integerIn conjunction with |
autoSlippageCollisionUsdValue integerIf |
Responses | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 Successful response
|