Calculate exchange
Financials
Calculate exchange
Get a real-time exchange rate quote including Qash spread and fees.
POST
Calculate exchange
Requires
X-Api-Key, X-Api-Secret, and Authorization: Bearer <user-jwt> headers. See Authentication for details.expiresAt (typically 30–60 seconds). Pass the quoted rate to your UI before asking the user to confirm the exchange.
Request
Body
| Field | Type | Required | Description |
|---|---|---|---|
fromAsset | string | Yes | Source currency: "USD", "COP", or "USDC" |
toAsset | string | Yes | Target currency: "USD", "COP", or "USDC" |
fromAmount | number | Yes | Amount to convert in base unit (not smallest unit) — e.g. 100 for USD 100.00 |
Response
200 OKdata
| Field | Type | Description |
|---|---|---|
fromAsset | string | Source currency |
toAsset | string | Target currency |
fromAmount | number | Input amount in base unit |
toAmount | number | Output amount in smallest unit after applying the quoted rate |
rate | number | Exchange rate including the Qash spread |
expiresAt | string | ISO 8601 timestamp — quote is invalid after this time |
signature | string | Cryptographic signature of the quote — pass this to the execute endpoint to lock in the rate |
signatureVersion | string | Signature algorithm version — currently "v1" |
Store the
signature and expiresAt values — they are required to execute the exchange. A quote cannot be executed after expiresAt.