An exchange rate sets the conversion value between currencies when you run a transaction. Two conversion directions are supported:Documentation Index
Fetch the complete documentation index at: https://docs.lumx.io/llms.txt
Use this file to discover all available pages before exploring further.
- Fiat to stablecoin (e.g. USD to USDC).
- Stablecoin to fiat (e.g. USDT to BRL).
Exchange rate types
Floating rate
A floating rate is a real-time reference rate without a price lock. Use it to show estimated conversion amounts in your UI. The actual rate applied at execution time may vary slightly with market conditions. No fee. Example: display an estimated conversion amount before a user confirms a transaction.Locked rate
A locked rate guarantees the exact conversion rate for a specific time window. When you request one, you get anexchangeRateId that locks in the quoted rate. Pass that ID on the transaction request to settle at the quoted rate.
Available durations: 30s, 1m, and 5m. The 30-second lock has no fee. Longer durations include a fee to cover volatility risk.
If the lock expires before the transaction is submitted, the exchangeRateId is no longer valid — request a new rate to continue.
Example: quote a guaranteed price to a customer so they have time to review and confirm before the rate expires.
Request a locked rate:
POST /exchange-rates
Response
id as exchangeRateId on the transaction request to settle at the quoted rate:
POST /transactions (excerpt)
Rate comparison
| Feature | Floating rate | Locked rate |
|---|---|---|
| Rate guarantee | No | Yes |
| Lock duration | N/A | 30s, 1m, 5m |
| Amount inputs | Source amount only | Source or target amount |
| Expiration | No | Yes |
| Additional fees | No | No for 30s, Yes for 1m+ |
| Best for | Immediate execution, low friction | Guaranteed pricing, exact quotes |
Related resources
Transactions
Apply exchange rates when moving funds between currencies.
Coverage
Supported currency pairs and conversion routes.