GET
/
exchange-rate
curl --request GET \
  --url https://api-sandbox.lumx.io/exchange-rate \
  --header 'Authorization: Bearer <token>'
{
  "sourceCurrency": "USDC",
  "targetCurrency": "BRL",
  "rate": 6.15
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <API_KEY>.

Query Parameters

sourceCurrency
enum<string>
required

The currency to convert from.

Available options:
BRL,
USDC,
USDT
targetCurrency
enum<string>
required

The currency to convert to.

Available options:
BRL,
USDC,
USDT

Response

200 - application/json
Exchange rate quote returned successfully.
sourceCurrency
enum<string>

The currency to convert from.

Available options:
USDC,
USDT,
BRL
targetCurrency
enum<string>

The currency to convert to.

Available options:
BRL,
USDC,
USDT
rate
number

The exchange rate between source and target currencies.

Example:

6.15