Quote an exchange and lock its rate
/fx/quotesPrices selling sellAmount for buyCurrency and locks the rate until expiresAt (about 30 seconds). A
crypto quote locks no rate (below) and can be executed until its expiresAt, up to 5 minutes.
Execute it with POST /fx/exchanges and quoteId — once: a quote is single-use. Nothing moves and nothing
is reserved; an unused quote simply lapses, so no Idempotency-Key is needed.
A crypto pair settles on an execution venue: its quote has rateLocked: false and the exchange fills at the
venue's prices. Its quote is the venue's estimate with your spread applied: sell is the most the exchange
sells, and rate prices buy against what it is estimated to cost — which can be less than sell, so
sell × rate can be more than buy. When the exchange completes, its sell, buy, rate, fee and
totalDebited are restated from what the venue filled, with your spread applied; what leaves your account
never exceeds the quote's totalDebited.
Accounts: name sellAccountId / buyAccountId, or leave them out and your default account in that currency
(isDefault: true on GET /accounts) is used — or the only one, when you hold just one. None in the sell
currency is 400 no_account_for_currency, none in the buy currency 400 fx_target_account_not_found. A named
account in another currency is 400 fx_account_currency_mismatch; one that is not yours is 404 not_found.
Request body application/jsonrequired
sellAmountobjectrequiredWhat you sell. No more decimals than its currency has (and never more than 8).valuestringrequiredExample:
149.90pattern ^-?\d{1,18}(\.\d{1,18})?$
currencystringrequiredISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.Example:
EURpattern ^[A-Z0-9]{3,10}$
buyCurrencystringrequiredISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.Example:
EURpattern ^[A-Z0-9]{3,10}$
sellAccountIdstringOptional. Left out, your default account in the sell currency (isDefault) — or the only one.Example:
acc_AAAAAAAAAAcpattern ^acc_[A-Za-z0-9_-]{11}$
buyAccountIdstringOptional. Left out, your default account in the buy currency (isDefault) — or the only one.Example:
acc_AAAAAAAAAAcpattern ^acc_[A-Za-z0-9_-]{11}$
Responses
The quote.
Headers
X-Request-IdstringThe request's trace id: the same value a problem body carries astraceId. Quote it when you contact support. A replayed response (Idempotent-Replayed: true) carries the replay's own; its body keeps the original request'straceId.RateLimit-LimitintegerRateLimit-RemainingintegerRateLimit-ResetintegerSeconds until the window resets.
Schema application/json
idstringrequiredSend asquoteIdtoPOST /fx/exchanges. Single use.sellMoneyrequiredDecimal amount as a string — never a float, never minor units. An amount you send may carry no more decimal places than its currency has (and never more than 8); trailing zeros do not count, so10.100 EURis fine and10.123 EURis400 validation_failedonamount.value. Avaluesent as a JSON number rather than a string is400 validation_failedtoo. An amount the API returns is written with exactly as many decimal places as its currency has (at most 8):10.10 EUR, never10.1.valuestringrequiredExample:
149.90pattern ^-?\d{1,18}(\.\d{1,18})?$
currencystringrequiredISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.Example:
EURpattern ^[A-Z0-9]{3,10}$
buyMoneyrequiredDecimal amount as a string — never a float, never minor units. An amount you send may carry no more decimal places than its currency has (and never more than 8); trailing zeros do not count, so10.100 EURis fine and10.123 EURis400 validation_failedonamount.value. Avaluesent as a JSON number rather than a string is400 validation_failedtoo. An amount the API returns is written with exactly as many decimal places as its currency has (at most 8):10.10 EUR, never10.1.valuestringrequiredExample:
149.90pattern ^-?\d{1,18}(\.\d{1,18})?$
currencystringrequiredISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.Example:
EURpattern ^[A-Z0-9]{3,10}$
ratestringrequiredUnits of the buy currency per unit of the sell currency. A string, never a float. On a fiat pair (rateLocked: true) it is the rate with your spread applied:buy = sell × rate. On a crypto pair (rateLocked: false) it is the venue's estimate with your spread applied:buyover what it is estimated to cost, which can be less thansell.Example:
0.8612feeobjectrequiredCharged on top ofsell, in the sell currency.valuestringrequiredExample:
149.90pattern ^-?\d{1,18}(\.\d{1,18})?$
currencystringrequiredISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.Example:
EURpattern ^[A-Z0-9]{3,10}$
totalDebitedobjectrequiredWhat leaves the sell account:sell + fee.valuestringrequiredExample:
149.90pattern ^-?\d{1,18}(\.\d{1,18})?$
currencystringrequiredISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.Example:
EURpattern ^[A-Z0-9]{3,10}$
sellAccountIdstringrequiredOpaque account identifier. Treat as a string; never parse or construct it. One of this shape that names no account is answered as an account that is not yours:404 not_found, or nothing on a list.Example:
acc_AAAAAAAAAAcpattern ^acc_[A-Za-z0-9_-]{11}$
buyAccountIdstringrequiredOpaque account identifier. Treat as a string; never parse or construct it. One of this shape that names no account is answered as an account that is not yours:404 not_found, or nothing on a list.Example:
acc_AAAAAAAAAAcpattern ^acc_[A-Za-z0-9_-]{11}$
rateLockedbooleanrequiredTrue when the rate is held untilexpiresAt. False when it is not: crypto pairs fill at the venue's price, andrateis a guide.expiresAtstring (date-time)requiredUntil when the quote can be executed — about 30 seconds after it is made for a fiat pair, up to 5 minutes for a crypto pair.Example:
2026-09-18T10:15:30.123Z