Skip to main content
POST
Swap Quote

Authorizations

X-API-KEY
string
header
required

Headers

X-API-KEY
string
required

API key for authentication

Body

application/json
trade_type
enum<string>
required

Whether the source or destination amount is fixed.

Available options:
EXACT_INPUT,
EXACT_OUTPUT
Example:

"EXACT_OUTPUT"

amount
string
required
Example:

"0.1"

source
object
required
Example:
destination
object
required
Example:
recipient
string | null
Example:

"0x1234...abcd"

slippage_bps
integer | null
Example:

50

Response

Quote produced (check result_type)

result_type
enum<string>
required

Soft-error result code returned by /v3/swap/quote endpoints. Non-OK values still arrive on a 200 so polling clients don't have to special-case errors.

Available options:
OK,
NO_ROUTE,
HIGH_IMPACT
Example:

"OK"

issues
object | null
Example:
quote
object | null
Example: