LabStack Docs
Login Signup

Currency Rates

List currency exchange rates relative to the base currency

Request

GET https://currency.labstack.com/api/v1/rates

Parameter Description Type Required Default
base Base currency String No USD
curl \
  -X GET https://currency.labstack.com/api/v1/rates \
  -H 'Authorization: Bearer <API_KEY>'
c := labstack.NewClient("<API_KEY>")
s := c.Currency()
res, err := s.Rates(&currency.RatesRequest{})
if err != nil {
  fmt.Println(err)
}
Client client = new Client("<API_KEY>");
CurrencyService service = client.currency();
try {
  RatesResponse response = service.rates(new RatesRequest());
} catch (LabStackException e) {
  e.printStackTrace();
}
const client = new Client("<API_KEY>")
const service = client.currency();
try {
  const response = await service.rates();
} catch (error) {
  console.error(error);
}
client = Client("<API_KEY>")
service = client.currency()
try:
  response = service.rates({})
except LabStackError as e:
  print(e)

Response

{
  "time": "2019-10-10T02:50:33Z",
  "base": "USD",
  "rates": {
    "AED": 3.6732,
    "AFN": 78.1705,
    "ALL": 111.915,
    "AMD": 476.64,
    "ANG": 1.7546,
    "AOA": 386.8545,
    "ARS": 57.7476,
    "AUD": 1.48259,
    "AWG": 1.8,
    "AZN": 1.7,
    "BAM": 1.7806,
    "BBD": 2.0186,
    "BDT": 84.6765,
    "BGN": 1.77955,
    "BHD": 0.37701,
    "BIF": 1848.4,
    "BMD": 1,
    "BND": 1.37975,
    "BOB": 6.9135,
    "BRL": 4.1097
  }
}
Parameter Description Type
time Rate updated time Date
base Base currency Number
rates Currency rates Object