Request real-time FX rates between fiat and stablecoins and use them in on/off-ramp transactions
Request a rate
Review the rate
Execute the transaction
/exchange-rates
endpoint with "type": "floating"
.
Parameter | Type | Required | Description |
---|---|---|---|
type | string | Yes | Must be "floating" . |
sourceCurrency | string | Yes | Currency code to convert from (e.g., BRL , USDC ). |
sourceAmount | string | Yes | Amount in sourceCurrency (string for decimal precision). |
targetCurrency | string | Yes | Currency code to convert to (e.g., USDC , BRL ). |
partnerFeeId | string | No | Partner fee to apply. If omitted and a default exists, it will be used. |
Field | Description |
---|---|
type | Exchange rate type (floating ). |
sourceCurrency | Currency being converted from. |
sourceAmount | Amount in source currency. |
targetCurrency | Currency being converted to. |
baseTargetAmount | Target amount before fees. |
baseExchangeRate | Base FX before fees. |
fees.lumx | Lumx fees (rate in bps, flatAmount and totalAmount in fees.lumx.currency ). |
fees.partner | Partner fees (if partnerFeeId provided or a default fee is configured). |
finalTargetAmount | Target amount after all fees. |
finalExchangeRate | Effective FX including fees (derived from finalTargetAmount / sourceAmount ). |
exchangeRateId
. The API computes the effective rate when the transaction executes.
partnerFeeId
is optional. If not provided, default fees apply.