POST
/
exchange-rates
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"
}'
{
  "type": "floating",
  "sourceCurrency": "BRL",
  "sourceAmount": "60000.00",
  "targetCurrency": "USDC",
  "targetAmount": "10125.727780",
  "rate": "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.