This endpoint returns an exchange rate quote between two currencies.
cURL
curl --request POST \ --url https://api-sandbox.lumx.io/exchange-rates \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "type": "floating", "sourceCurrency": "BRL", "sourceAmount": "60000.00", "targetCurrency": "USDC" }'
200
Floating
{ "type": "floating", "sourceCurrency": "BRL", "sourceAmount": "60000.00", "targetCurrency": "USDC", "targetAmount": "10125.727780", "rate": "5.9255"}
Bearer authentication header on the format Bearer <API_KEY>.
Bearer <API_KEY>
Exchange rate type is floating.
Resource successfully retrieved.