POST
/
exchange-rates
Get an exchange rate
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"
}'
{
"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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header on the format Bearer <API_KEY>.

Body

application/json

Exchange rate type is floating.

Response

200 - application/json

Resource successfully retrieved.

Exchange rate type is floating.