Skip to main content
Use Trade to convert between stablecoins and fiat in either direction. The same quote flow funds or empties your trading vault in fiat or crypto. See Deposit into the LP vault and Withdraw from the LP vault.
This flow is for first-party conversions only: the source and destination, whether a wallet or a bank account, must both be yours. It is not available for paying third parties.

API flow

1

Get a quote

Specify the input asset, the output asset, and exactly one amount. Source and destination are optional. Save the quoteId of the quote you choose. See Get Quote.
2

Execute the quote

Create a transaction from the quoteId before the quote expires. See Execute Quote.
3

Approve the transaction

The new transaction is PENDING until approved. Get the approval message, sign it, and submit the approval. The SDK’s createTransactionFromIntent() does this for you. See Approvals.
4

Track the transaction

Use Retrieve Transaction or webhooks to track it until it reaches COMPLETED, FAILED, or DECLINED.

Get Quote

Execute Quote