Get an FX quote

Converts an amount between a fiat currency and USDC (either direction) at the current rate. Send currencyIn, currencyOut and exactly one of amountIn / amountOut (decimal strings, greater than 0); a currency is a ticker (USD, EUR, USDC) or a BXNK currency code. For a fiat/crypto pair the response also carries fees: BXNK's fee for the caller's Partner priced on this quote, with feeBreakdown (an admin sends pspId; send rail when the fiat has fee schedules on several rails); feesUnavailableReason says why when it could not be priced. The quote is indicative and firm for about 30 seconds; it is not stored and is not attached to a payment or payout, so the rate applied when funds settle can differ. 400 for an invalid request, 404 for a currency pair with no market, 503 when the banking partner cannot be reached (retry with backoff).

Gets the current exchange rate between a fiat currency and USDC, in either direction. Use it to show an estimate before a customer pays (fiat to USDC) or before you withdraw (USDC to fiat).

A quote is indicative and valid for about 30 seconds. It is not stored and not attached to any payment or payout. The rate used when money actually settles can be different.

Authentication

Requires a Product API bearer token: Authorization: Bearer <accessToken>.

Request body

FieldTypeRequiredDescription
currencyInstringYesThe currency you convert from, for example EUR or USDC. Not case-sensitive.
currencyOutstringYesThe currency you convert to, for example USDC or EUR. Not case-sensitive.
amountInstringOne of the twoThe amount of currencyIn to convert, as a decimal string greater than 0, for example "100" or "99.50".
amountOutstringOne of the twoThe amount of currencyOut you want to receive, as a decimal string greater than 0.

Send exactly one of amountIn or amountOut.

{
  "currencyIn": "USDC",
  "currencyOut": "EUR",
  "amountIn": "25"
}

Response

200: returns data with the converted amounts.

FieldTypeDescription
currencyInstringCurrency converted from.
currencyOutstringCurrency converted to.
amountInstringAmount of currencyIn, as a decimal string.
amountOutstringAmount of currencyOut, as a decimal string. It can have many decimal places; round it for display.
createdAtstringWhen the quote was made (ISO 8601).
expiresAtstringWhen the quote stops being valid (ISO 8601). Not always present.
{
  "message": "FX quote retrieved successfully",
  "data": {
    "currencyIn": "USDC",
    "currencyOut": "EUR",
    "amountIn": "25",
    "amountOut": "22.2050211864406793",
    "createdAt": "2026-11-04T07:18:00Z"
  }
}

Errors

StatusWhen it happens
400Both or neither of amountIn and amountOut were sent (Send exactly one of amountIn or amountOut), or an amount is not a decimal string greater than 0, or a currency code is malformed.
401The access token is missing, invalid or expired.
404There is no exchange market for this currency pair.
503The rate provider is temporarily unreachable. Try again with increasing waits between attempts.
Body Params
string
required

Currency you pay: a ticker (USD, EUR, USDC) or a BXNK currency code (USDC_BASECHAIN_ETH_TEST5_RMYH). Case-insensitive.

string
required

Currency you receive: a ticker or a BXNK currency code, as for currencyIn. Case-insensitive.

string

Fixed amount to convert, as a decimal string. Send exactly one of amountIn / amountOut.

string

Fixed amount to receive, as a decimal string. Send exactly one of amountIn / amountOut.

string

The bank rail to price BXNK's fee on (the rail of the fee schedule). Optional when the fiat has fee schedules for one rail only; with several, feesUnavailableReason lists them.

number

Admin callers only: the PSP whose fee schedule to price. A PSP caller is always priced on its own schedule.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json