cURL
curl --request POST \ --url https://api.lumx.io/exchange-rates \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "type": "floating", "sourceCurrency": "BRL", "sourceAmount": "60000.00", "targetCurrency": "USDC", "partnerFeeId": "123e4567-e89b-12d3-a456-426614174004" }'
200
Floating
{ "type": "floating", "sourceCurrency": "BRL", "sourceAmount": "5925.55", "targetCurrency": "USDC", "baseTargetAmount": "10000.000000", "baseExchangeRate": "5.9255", "fees": { "lumx": { "rate": "10", "flatAmount": "1", "totalAmount": "11", "currency": "USDC" }, "partner": { "rate": "10", "flatAmount": "1", "totalAmount": "11", "currency": "USDC" } }, "finalTargetAmount": "10000.000000", "finalExchangeRate": "5.9255"}
This endpoint returns an exchange rate quote between two currencies.
Bearer authentication header on the format Bearer <API_KEY>.
Bearer <API_KEY>
Exchange rate type is floating.
Resource successfully retrieved.