Skip to main content

quote

GET 

https://lite-api.jup.ag/swap/v1/quote

Request for a quote to be used in POST /swap

note

Refer to Swap API doc for more information

Request

Query Parameters

    inputMint stringrequired
    outputMint stringrequired
    amount integerrequired
    • Raw amount to swap (before decimals)
    • Input Amount if SwapMode=ExactIn
    • Output Amount if SwapMode=ExactOut
    slippageBps integer
    swapMode string

    Possible values: [ExactIn, ExactOut]

    • ExactOut is for supporting use cases where you need an exact output amount, like using Swap API as a payment service
    • In the case of ExactIn, the slippage is on the output token
    • In the case of ExactOut, the slippage is on the input token
    • Not all AMMs support ExactOut: Currently only Orca Whirlpool, Raydium CLMM, Raydium CPMM
    Default value: ExactIn
    dexes string[]
    • Multiple DEXes can be pass in by comma separating them
    • For example: dexes=Raydium,Orca+V2,Meteora+DLMM
    • If a DEX is indicated, the route will only use that DEX
    • Full list of DEXes here
    excludeDexes string[]
    • Multiple DEXes can be pass in by comma separating them
    • For example: excludeDexes=Raydium,Orca+V2,Meteora+DLMM
    • If a DEX is indicated, the route will not use that DEX
    • Full list of DEXes here
    restrictIntermediateTokens boolean
    • Restrict intermediate tokens within a route to a set of more stable tokens
    • This will help to reduce exposure to potential high slippage routes
    Default value: true
    onlyDirectRoutes boolean
    • Direct Routes limits Jupiter routing to single hop routes only
    • This may result in worse routes
    Default value: false
    asLegacyTransaction boolean
    • Instead of using versioned transaction, this will use the legacy transaction
    Default value: false
    platformFeeBps integer
    • Take fees in basis points
    • Used together with feeAccount in /swap, see Adding Fees guide
    maxAccounts integer
    • Rough estimate of the max accounts to be used for the quote
    • Useful if composing your own transaction or to be more precise in resource accounting for better routes
    Default value: 64
    dynamicSlippage boolean
    • If true, slippageBps will be overriden by Dynamic Slippage's estimated value
    • The value is returned in /swap endpoint
    Default value: false

Responses

Successful response to be used in /swap

Schema
    inputMintstringrequired
    inAmountstringrequired
    outputMintstringrequired
    outAmountstringrequired
    • Calculated output amount from routing engine
    • The value includes platform fees and DEX fees, excluding slippage
    otherAmountThresholdstringrequired
    • Calculated minimum output amount after accounting for slippageBps on the outAmount value
    • Not used by /swap endpoint to build transaction
    swapModeSwapMode (string)required

    Possible values: [ExactIn, ExactOut]

    slippageBpsint32required
    platformFee object
    amountstring
    feeBpsint32
    priceImpactPctstringrequired
    routePlan object[]required
  • Array [
  • swapInfo objectrequired
    ammKeystringrequired
    labelstring
    inputMintstringrequired
    outputMintstringrequired
    inAmountstringrequired
    outAmountstringrequired
    feeAmountstringrequired
    feeMintstringrequired
    percentint32required
  • ]
  • contextSlotnumber
    timeTakennumber
curl -L 'https://lite-api.jup.ag/swap/v1/quote' \
-H 'Accept: application/json'
Request Collapse all
Base URL
https://lite-api.jup.ag/swap/v1
Parameters
— queryrequired
— queryrequired
— queryrequired
— query
— query
— query
— query
— query
— query
— query
— query
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!