# Danmarks Nationalbank (Denmark) FX API
> Official Danish krone (DKK) exchange rates from Danmarks Nationalbank, with no key. Get the latest official rate for every quoted currency, a single-currency rate, a currency converter and the list of quoted currencies. The central bank quotes rates as DKK per 100 units, so every rate is also normalised to a per-unit DKK value (rate ÷ 100) and conversions are correct. The Danish-FX layer for treasury, pricing and FX dashboards.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/denmark-fx-api/..."
```

## Pricing
- **Free** (Free) — 1,420 calls/Mo, 2 req/s
- **Basic** ($9/Mo) — 42,600 calls/Mo, 6 req/s
- **Pro** ($26/Mo) — 172,000 calls/Mo, 15 req/s
- **Business** ($55/Mo) — 705,000 calls/Mo, 40 req/s

## Endpoints

### FX

#### `GET /v1/convert` — Convert an amount between two currencies via DKK

**Parameters:**
- `from` (query, required, string) — Source ISO code (or DKK) Example: `USD`
- `to` (query, required, string) — Target ISO code (or DKK) Example: `DKK`
- `amount` (query, optional, string) — Amount to convert Example: `100`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/denmark-fx-api/v1/convert?from=USD&to=DKK&amount=100"
```

**Response:**
```json
{
    "data": {
        "to": "DKK",
        "base": "DKK",
        "date": "2026-06-12",
        "from": "USD",
        "rate": 6.4618,
        "amount": 100,
        "result": 646.18
    },
    "meta": {
        "timestamp": "2026-06-15T11:15:43.748Z",
        "request_id": "558e30f3-5e03-4512-9b2a-a1448476366a"
    },
    "status": "ok",
    "message": "Conversion retrieved successfully",
    "success": true
}
```

#### `GET /v1/currencies` — All currencies quoted by Danmarks Nationalbank

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/denmark-fx-api/v1/currencies"
```

**Response:**
```json
{
    "data": {
        "base": "DKK",
        "date": "2026-06-12",
        "count": 30,
        "currencies": [
            "AUD",
            "BRL",
            "CAD",
            "CHF",
            "CNY",
            "CZK",
            "EUR",
            "GBP",
            "HKD",
            "HUF",
            "IDR",
            "ILS",
            "INR",
            "ISK",
            "JPY",
            "KRW",
            "MXN",
            "MYR",
            "NOK",
            "NZD",
            "PHP",
            "PLN",
            "RON",
            "SEK",
            "SGD",
            "THB",
            "TRY",
            "USD",
            "XDR",
            "ZAR"
        ]
    },
    "meta": {
        "timestamp": "2026-06-15T11:15:43.838Z",
        "request_id": "277bd158-e38d-4293-92e6-9e91a703c3ee"
    },
    "status": "ok",
    "message": "Currencies retrieved successfully",
    "success": true
}
```

#### `GET /v1/latest` — Latest official DKK rates (all or selected)

**Parameters:**
- `symbols` (query, optional, string) — Comma-separated ISO codes Example: `USD,EUR,SEK`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/denmark-fx-api/v1/latest?symbols=USD%2CEUR%2CSEK"
```

**Response:**
```json
{
    "data": {
        "base": "DKK",
        "date": "2026-06-12",
        "count": 3,
        "rates": [
            {
                "iso": "EUR",
                "name": "Euro",
                "per_unit_dkk": 7.4744,
                "rate_per_100": 747.44
            },
            {
                "iso": "SEK",
                "name": "Swedish kronor",
                "per_unit_dkk": 0.684,
                "rate_per_100": 68.4
            },
            {
                "iso": "USD",
                "name": "US dollars",
                "per_unit_dkk": 6.4618,
                "rate_per_100": 646.18
            }
        ],
        "quote_per": 100
    },
    "meta": {
        "timestamp": "2026-06-15T11:15:43.938Z",
        "request_id": "b9253852-6cfe-4ed3-ad0d-ca5a045a0763"
    },
    "status": "ok",
    "message": "Latest rates retrieved successfully",
    "success": true
}
```

#### `GET /v1/rate` — Single-currency DKK rate

**Parameters:**
- `symbol` (query, required, string) — 3-letter ISO code Example: `USD`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/denmark-fx-api/v1/rate?symbol=USD"
```

**Response:**
```json
{
    "data": {
        "iso": "USD",
        "base": "DKK",
        "date": "2026-06-12",
        "name": "US dollars",
        "per_unit_dkk": 6.4618,
        "rate_per_100": 646.18
    },
    "meta": {
        "timestamp": "2026-06-15T11:15:44.034Z",
        "request_id": "bbcb5ee0-5a7d-4a3a-94c8-d0333ab16636"
    },
    "status": "ok",
    "message": "Rate retrieved successfully",
    "success": true
}
```

### Meta

#### `GET /v1/meta` — Bank metadata & endpoint guide

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/denmark-fx-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "bank": "Danmarks Nationalbank",
        "note": "The bank quotes DKK per 100 units; per_unit_dkk = rate_per_100 / 100, used for conversions.",
        "source": "Danmarks Nationalbank XML feed (nationalbanken.dk/api/currencyratesxml), keyless",
        "country": "Denmark",
        "examples": {
            "rate": "/v1/rate?symbol=USD",
            "latest": "/v1/latest?symbols=USD,EUR,SEK",
            "convert": "/v1/convert?from=USD&to=DKK&amount=100",
            "currencies": "/v1/currencies"
        },
        "endpoints": {
            "/v1/rate": "single-currency rate with per-100 and per-unit DKK value (symbol=USD)",
            "/v1/latest": "latest official DKK rates for all (or selected) currencies (symbols optional)",
            "/v1/convert": "convert an amount between any two quoted currencies via DKK (from, to, amount)",
            "/v1/currencies": "all currencies quoted by Danmarks Nationalbank"
        },
        "cache_ttl_ms": 300000,
        "base_currency": "DKK"
    },
    "meta": {
        "timestamp": "2026-06-15T11:15:44.128Z",
        "request_id": "fda5d194-3db2-4942-a1f9-3a969a15b805"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/denmark-fx-api
OpenAPI spec: https://www.oanor.com/api/denmark-fx-api/openapi.json
