Skip to content

Exchange Rates

Get latest exchange rates between fiat and cryptocurrencies.

List Rates

Retrieve all available exchange rates for fiat currencies and cryptocurrencies.

HTTP Request

GET /v1/exchange-rates/

python
rates = uniwire_api_request('/v1//v1/exchange-rates/')
javascript
uniwire_api_request('/v1/exchange-rates/').then(function(response) {
  console.log(response);
}).catch(function(error) {
  console.log(error);
});

The above command returns JSON structured like this:

json
{
  "result": [
    {
      "id": "united-states-dollar",
      "kind": "fiat",
      "symbol": "USD",
      "rate_usd": "1",
      "rate_btc": "0.000292111117128",
      "sign": "$"
    },
    {
      "id": "euro",
      "kind": "fiat",
      "symbol": "EUR",
      "rate_usd": "1.1424784928423721",
      "rate_btc": "2996.4282380088874310",
      "sign": "€"
    },
    {
      "id": "bitcoin",
      "kind": "crypto",
      "symbol": "BTC",
      "rate_usd": "3423.3548172707183421",
      "rate_btc": "1",
      "sign": "₿"
    }
  ]
}

Get Rate

Get exchange rate for a specific fiat currency.

HTTP Request

GET /v1/exchange-rates/<SYMBOL>/

URL Parameters

ParameterDescription
SYMBOLSymbol of the currency to retrieve
python
rates = uniwire_api_request('/v1/exchange-rates/EUR/')
javascript
uniwire_api_request('/v1/exchange-rates/EUR/').then(function(response) {
  console.log(response);
}).catch(function(error) {
  console.log(error);
});

The above command returns JSON structured like this:

json
{
  "result": {
    "id": "euro",
    "kind": "fiat",
    "symbol": "EUR",
    "rate_usd": "1.1424784928423721",
    "rate_btc": "2996.4282380088874310",
    "sign": "€"
  }
}