Skip to main content
POST
Calculate exchange
Requires Authorization: Bearer <user-access-token> — the token from Verify login code. See Authentication for details.
Calculates how much the user would receive when converting one currency to another, applying the Qash spread and fees to the market rate. This endpoint is read-only — it does not execute any transaction or reserve funds. The returned quote is valid until expiresAt (typically 30–60 seconds). Pass the quoted rate to your UI before asking the user to confirm the exchange.

Request

Body

Response

200 OK

data

Both fromAmount and toAmount are decimal values in their respective asset’s major unit — toAmount: 415823 above means COP 415,823.00, not COP 4,158.23. Never use floating point arithmetic to compute these values before sending them.
Store the signature and expiresAt values — they are required to execute the exchange. A quote cannot be executed after expiresAt.