GET
/
quote
curl --request GET \
  --url https://quote-api.dflow.net/quote
{
  "inAmount": "<string>",
  "inputMint": "<string>",
  "minOutAmount": "<string>",
  "otherAmountThreshold": "<string>",
  "outAmount": "<string>",
  "outputMint": "<string>",
  "platformFee": null,
  "priceImpactPct": "<string>",
  "routePlan": [
    {
      "inAmount": "<string>",
      "inputMint": "<string>",
      "inputMintDecimals": 1,
      "leg": "<any>",
      "marketKey": "<string>",
      "outAmount": "<string>",
      "outputMint": "<string>",
      "outputMintDecimals": 1,
      "venue": "<string>"
    }
  ],
  "simulatedComputeUnits": 1,
  "slippageBps": 1
}

Query Parameters

inputMint
string
required

Base58-encoded input mint address

outputMint
string
required

Base58-encoded output mint address

amount
integer
required

Input amount as a scaled integer. For example, 1 SOL is 1000000000.

Required range: x >= 0
slippageBps
integer

Max allowed slippage % in basis points

Required range: x >= 0
dexes
string

Comma-separated list of DEXes to include. If not specified, all DEXes will be included.

excludeDexes
string

Comma-separated list of DEXes to exclude. If not specified, all DEXes will be included.

platformFeeBps
integer

Optional platform fee in basis points

Required range: x >= 0
platformFeeMode
enum<string>

Optional platform fee mode. If not specified, the default is outputMint.

Available options:
outputMint,
inputMint
onlyDirectRoutes
boolean

If true, only use single-leg routes

maxRouteLength
integer

If specified, the route will be limited to the specified number of legs. Ignored if only_direct_routes is true.

Required range: x >= 0

Response

200
application/json
Imperative swap quote

The response is of type object.