Skip to main content
GET
/
quote
Get swap quote
curl --request GET \
  --url https://raptor-beta.solanatracker.io/quote
{
  "inputMint": "<string>",
  "outputMint": "<string>",
  "amountIn": "<string>",
  "amountOut": "<string>",
  "minAmountOut": "<string>",
  "feeAmount": "<string>",
  "priceImpact": 123,
  "slippageBps": 123,
  "routePlan": [
    {
      "programId": "<string>",
      "dex": "<string>",
      "pool": "<string>",
      "inputMint": "<string>",
      "outputMint": "<string>",
      "amountIn": "<string>",
      "amountOut": "<string>",
      "feeAmount": "<string>",
      "priceImpact": 123,
      "percent": 123
    }
  ],
  "contextSlot": 123,
  "timeTaken": 123,
  "swapUsdValue": "<string>",
  "priorityFee": {
    "recommended": 123,
    "level": "<string>",
    "levels": {
      "min": 123,
      "low": 123,
      "medium": 123,
      "high": 123,
      "veryHigh": 123,
      "unsafeMax": 123
    }
  },
  "platformFee": {
    "feeBps": 123,
    "feeAccount": "<string>"
  }
}

Query Parameters

inputMint
string
required

Input token mint address

outputMint
string
required

Output token mint address

amount
integer
required

Input amount in lamports

Required range: x >= 1
slippageBps
string
default:50

Slippage in basis points or 'dynamic'

dexes
string

Comma-separated list of DEXes to include

pools
string

Comma-separated list of specific pool addresses

maxHops
integer
default:4

Maximum routing hops

Required range: 1 <= x <= 4
feeBps
integer
default:0

Platform fee in basis points

Required range: 0 <= x <= 1000
feeFromInput
boolean
default:false

Take fee from input amount

chargeBps
integer
default:0

Extra charge on positive slippage

Required range: x >= 0
feeAccount
string

Fee recipient wallet address

Response

Successful quote response

inputMint
string
required

Input token mint address

outputMint
string
required

Output token mint address

amountIn
string
required

Input amount in lamports

amountOut
string
required

Expected output amount in lamports

minAmountOut
string
required

Minimum output amount after slippage

feeAmount
string
required

Total fees paid in lamports

priceImpact
number
required

Price impact percentage

slippageBps
integer
required

Slippage used in basis points

routePlan
object[]
required

Array of routing steps

contextSlot
integer
required

Solana slot when quote was generated

timeTaken
number
required

Time taken to generate quote in seconds

swapUsdValue
string

USD value of the input amount

priorityFee
object
platformFee
object