Zum Inhalt springen
GET /v1/rates

Quarterly set — all currencies per USD

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/treasuryfx-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/treasuryfx-api/v1/rates" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/treasuryfx-api/v1/rates", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/treasuryfx-api/v1/rates");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/treasuryfx-api/v1/rates",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "base": "USD",
        "note": "rate_per_usd = units of the currency per 1 US dollar",
        "count": 168,
        "rates": [
            {
                "country": "Afghanistan",
                "currency": "Afghani",
                "rate_per_usd": 64.77,
                "country_currency": "Afghanistan-Afghani"
            },
            {
                "country": "Albania",
                "currency": "Lek",
                "rate_per_usd": 83.3,
                "country_currency": "Albania-Lek"
            },
            {
                "country": "Algeria",
                "currency": "Dinar",
                "rate_per_usd": 132.596,
                "country_currency": "Algeria-Dinar"
            },
            {
                "country": "Angola",
                "currency": "Kwanza",
                "rate_per_usd": 912.13,
                "country_currency": "Angola-Kwanza"
            },
            {
                "country": "Antigua & Barbuda",
                "currency": "East Caribbean Dollar",
                "rate_per_usd": 2.7,
                "country_currency": "Antigua & Barbuda-East Caribbean Dollar"
            },
            {
                "country": "Argentina",
                "currency": "Peso",
                "rate_per_usd": 1420,
                "country_currency": "Argentina-Peso"
            },
            {
                "country": "Armenia",
                "currency": "Dram",
                "rate_per_usd": 380,
                "country_currency": "Armenia-Dram"
            },
            {
                "country": "Australia",
                "currency": "Dollar",
                "rate_per_usd": 1.453,
                "country_currency": "Australia-Dollar"
            },
            {
                "country": "Azerbaijan",
                "currency": "Manat",
                "rate_per_usd": 1.7,
                "country_currency": "Azerbaijan-Manat"
            },
            {
                "country": "Bahamas",
                "currency": "Dollar",
                "rate_per_usd": 1,
                "country_currency": "Bahamas-Dollar"
            },
            {
                "country": "Bahrain",
                "currency": "Dinar",
                "rate_per_usd": 0.377,
                "country_currency": "Bahrain-Dinar"
            },
            {
                "country": "Bangladesh",
                "currency": "Taka",
                "rate_per_usd": 123,
                "country_currency": "Bangladesh-Taka"
            },
            {
                "country": "Barbados",
                "currency": "Dollar",
                "rate_per_usd": 2.02,
                "country_currency": "Barbados-Dollar"
            },
            {
                "country": "Belarus",
                "currency": "New Ruble",
                "rate_per_usd": 2.951,
                "country_currency": "Belarus-New Ruble"
            },
            {
                "country":
…