Skip to main content
GET
/
rates
Get exchange rates for a given base currency
curl --request GET \
  --url https://access.utgl.io/v1/rates \
  --header 'Authorization: Basic <encoded-value>'
{
  "baseCurrency": "HKD",
  "rates": {
    "CAD": 0.16,
    "GBP": 0.091,
    "SGD": 0.14,
    "EUR": 0.11,
    "USD": 0.13
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

baseCurrency
string
required

The base currency for which exchange rates are requested.

Example:

"HKD"

currencies
string[]

A list of currencies for which exchange rates are requested. If not specified, returns all available rates.

Response

200 - application/json

Exchange rates successfully retrieved

baseCurrency
string

The base currency for which exchange rates were requested.

Example:

"HKD"

rates
object