Developer Portal

Exchange RatesGET

Returns the current conversion rate between two currencies. Use it to convert balances, PnL or margin figures from an account's currency into another, for example USD to EUR.

View as Markdown
GET
/exchange-rates

Authorization

AuthorizationRequiredBearer <token>

JWT token obtained from the login endpoint

In: header

Query Parameters

fromRequiredstring
toRequiredstring
curl -X GET "http://localhost:8081/api/v1/exchange-rates?from=%3Cstring%3E&to=%3Cstring%3E" \
  -H "Authorization: Bearer <token>"

Exchange rate retrieved successfully

{
  "from": "string",
  "to": "string",
  "rate": 0.1
}