Create a wallet-swap quote

Create a short-lived quote between supported Wallet assets. Supply either quantity (the amount of asset) or total (the amount of spendAsset), but not both. Not every combination of accepted asset codes is necessarily available; unsupported pairs return a validation error.
A quote does not move funds. Execute it before expiresAt using Execute a wallet swap and the returned quoteID.

Body Params

Quote request.

string
enum
required

Whether to buy or sell asset.

Allowed:
string
enum
required

Asset to receive or sell, according to side.

Allowed:
string
enum
required

Other asset in the quote pair.

Allowed:
number
required
> 0

Positive amount of asset to quote.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json