Get Quotes

Get quotes from Jupiter by specifying required parameters.

This version contains experimental support for Jupiter in the Quotes endpoint and Prices stream endpoint. Note that the endpoints in Trader API are powered by Geyser, which is faster but will also result in subtly different state representations than what you'd normally get over Solana RPC. We welcome any feedback you have on these results.

Request

Method:

GET ./api/v2/jupiter/quotes

Parameters:

Jupiter support for this endpoint is still experimental as we incorporate Geyser streams into Jupiter's aggregation algorithms. We welcome any feedback here.

Request example:

curl --header "Authorization: $AUTH_HEADER" \
"https://ny.solana.dex.blxrbdn.com/api/v2/jupiter/quotes?inToken=SOL&outToken=USDC&inAmount=0.1&slippage=0.1",

# fast mode request
curl --header "Authorization: $AUTH_HEADER" \
"https://ny.solana.dex.blxrbdn.com/api/v2/jupiter/quotes?inToken=SOL&outToken=USDC&inAmount=0.1&slippage=0.1&fastMode=true"

Response:

Fields:

ProjectQuote

QuoteRoute

QuoteStep

PriceImpactPercent

Fee

Response Example:

{
    "inToken": "SOL",
    "inTokenAddress": "So11111111111111111111111111111111111111112",
    "outToken": "USDC",
    "outTokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "inAmount": 0.1,
    "quotes": [
        {
            "routes": [
                {
                    "inAmount": 0.1,
                    "outAmount": 5.843859,
                    "steps": [
                        {
                            "project": {
                                "label": "Raydium",
                                "id": ""
                            },
                            "inToken": "SOL",
                            "inTokenAddress": "So11111111111111111111111111111111111111112",
                            "outToken": "",
                            "outTokenAddress": "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R",
                            "inAmount": 0.1,
                            "outAmount": 3.328617,
                            "slippage": 0.1,
                            "priceImpactPercent": {
                                "percent": 9.899955638899446e-7,
                                "infinity": "INF_NOT"
                            },
                            "fee": {
                                "amount": 0.00025,
                                "mint": "",
                                "percent": 0
                            }
                        }
                    ]
                }
            ]
        }
    ]
}

Last updated