Create a quote
Locks an FX rate for a short window. Required by every operation creation endpoint.
Authorizations
JWT bearer token. Include as Authorization: Bearer <token>. See the Authentication guide for how to obtain one.
Headers
Unique key to ensure idempotent request processing. Required on all POST, PUT, and PATCH requests.
API version. Omit to use the default version.
"1"
Body
Quotes lock an FX rate (or a 1:1 spot for same-asset) for a short window and are required by every operation creation endpoint. A quote is bound to a specific account and can be consumed by exactly one operation on that account.
Provide exactly one of sourceAmount or targetAmount:
sourceAmount— fix the amount you'll spend; the target side is computed.targetAmount— fix the amount the beneficiary receives; the source side is computed.
Same-asset quotes (sourceAsset == targetAsset) are valid and return a 1:1 spot with zero spread.
Account the quote is bound to. The consuming operation must reference the same account.
"a1b2c3d4-5e6f-7890-abcd-ef1234567890"
ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals | Asset | Decimals |
|---|---|---|---|
| USD | 2 | NZD | 2 |
| BRL | 2 | CHF | 2 |
| EUR | 2 | NOK | 2 |
| CAD | 2 | DKK | 2 |
| AUD | 2 | PLN | 2 |
| GBP | 2 | SEK | 2 |
| MXN | 2 | USDC | 6 |
| HKD | 2 | USDT | 6 |
| SGD | 2 | EURC | 6 |
| PHP | 2 | BRLT | 6 |
USD, BRL, EUR, CAD, AUD, GBP, MXN, HKD, SGD, PHP, NZD, CHF, NOK, DKK, PLN, SEK, USDC, USDT, EURC, BRLT "BRL"
ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:
| Asset | Decimals | Asset | Decimals |
|---|---|---|---|
| USD | 2 | NZD | 2 |
| BRL | 2 | CHF | 2 |
| EUR | 2 | NOK | 2 |
| CAD | 2 | DKK | 2 |
| AUD | 2 | PLN | 2 |
| GBP | 2 | SEK | 2 |
| MXN | 2 | USDC | 6 |
| HKD | 2 | USDT | 6 |
| SGD | 2 | EURC | 6 |
| PHP | 2 | BRLT | 6 |
USD, BRL, EUR, CAD, AUD, GBP, MXN, HKD, SGD, PHP, NZD, CHF, NOK, DKK, PLN, SEK, USDC, USDT, EURC, BRLT "BRL"
Decimal monetary amount in the associated asset. The number of fractional digits must not exceed the asset's precision — see Asset for the per-asset table. Exceeding the precision fails with INVALID_AMOUNT_PRECISION.
^-?\d+(\.\d+)?$"500.00"
Decimal monetary amount in the associated asset. The number of fractional digits must not exceed the asset's precision — see Asset for the per-asset table. Exceeding the precision fails with INVALID_AMOUNT_PRECISION.
^-?\d+(\.\d+)?$"500.00"
Response
Quote created.
A quote that can be consumed by an operation. Expires after a short window.
Reference to a customer account, including the registered owner name.
Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.
Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.
Exchange rate between two currencies.
Time at which the quote expires. Operations referencing the quote after this fail with QUOTE_EXPIRED.