# Kraken Exchange API
> Live market data from the Kraken cryptocurrency exchange, served straight from Kraken's public API — no key, no account, nothing cached. Kraken is one of the oldest and largest crypto exchanges; this reads its order book and trades directly. The ticker endpoint returns the live quote for one or many pairs — the last traded price, the best bid and ask and the spread, the 24-hour volume and VWAP, the 24-hour high, low and open and the change since open, and the 24-hour trade count: XBT/USD trades around its live price with thousands of trades a day. The orderbook endpoint returns the live order book to any depth — the bid and ask price levels with their sizes, the best bid/ask and the spread — the real liquidity behind the price. The ohlc endpoint returns candlestick history at intervals from one minute to two weeks. Pairs can be given the friendly way (BTCUSD, ETHEUR) and it resolves them to Kraken's canonical names. This is the exchange-market-data layer for any trading, charting, arbitrage or bot application. Live from Kraken, nothing stored. Distinct from aggregate-price and other single-exchange APIs — this is Kraken's own ticker, order book and candles. 4 endpoints.

## 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/kraken-api/..."
```

## Pricing
- **Free** (Free) — 11,800 calls/Mo, 3 req/s
- **Starter** ($9/Mo) — 138,000 calls/Mo, 8 req/s
- **Pro** ($24/Mo) — 655,000 calls/Mo, 15 req/s
- **Scale** ($57/Mo) — 3,050,000 calls/Mo, 30 req/s

## Endpoints

### Kraken

#### `GET /v1/ohlc` — Candlestick history

**Parameters:**
- `pair` (query, required, string) — Pair Example: `BTCUSD`
- `interval` (query, optional, string) — Minutes: 1,5,15,30,60,240,1440,10080,21600 Example: `60`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/kraken-api/v1/ohlc?pair=BTCUSD&interval=60"
```

**Response:**
```json
{
    "data": {
        "pair": "XXBTZUSD",
        "count": 200,
        "candles": [
            {
                "low": 73260.5,
                "high": 73745.9,
                "open": 73673,
                "time": 1780286400,
                "vwap": 73373.3,
                "close": 73429.8,
                "trades": 1553,
                "volume": 15.42807506
            },
            {
                "low": 73218.4,
                "high": 73434.3,
                "open": 73429.8,
                "time": 1780290000,
                "vwap": 73371.5,
                "close": 73256.2,
                "trades": 1502,
                "volume": 25.01180135
            },
            {
                "low": 72867.8,
                "high": 73270,
                "open": 73256.6,
                "time": 1780293600,
                "vwap": 73049.2,
                "close": 73041.7,
                "trades": 2677,
                "volume": 50.18040824
            },
            {
                "low": 72613.7,
                "high": 73100,
                "open": 73042,
                "time": 1780297200,
                "vwap": 72821.8,
                "close": 72719.8,
                "trades": 2937,
                "volume": 64.65090393
            },
            {
                "low": 72523.5,
                "high": 72835.3,
                "open": 72719.8,
                "time": 1780300800,
                "vwap": 72718.6,
                "close": 72799.8,
      
…(truncated, see openapi.json for full schema)
```

#### `GET /v1/orderbook` — Live order book

**Parameters:**
- `pair` (query, required, string) — Pair Example: `BTCUSD`
- `depth` (query, optional, string) — Levels per side (1-100, default 10) Example: `10`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/kraken-api/v1/orderbook?pair=BTCUSD&depth=10"
```

**Response:**
```json
{
    "data": {
        "asks": [
            {
                "price": 62534.4,
                "volume": 0.002
            },
            {
                "price": 62535.2,
                "volume": 0.001
            },
            {
                "price": 62536,
                "volume": 0.002
            },
            {
                "price": 62538.3,
                "volume": 0.001
            },
            {
                "price": 62541.4,
                "volume": 0.001
            },
            {
                "price": 62545.6,
                "volume": 0.014
            },
            {
                "price": 62546.4,
                "volume": 0.094
            },
            {
                "price": 62547.4,
                "volume": 0.8
            },
            {
                "price": 62550.1,
                "volume": 0.002
            },
            {
                "price": 62550.9,
                "volume": 0.034
            }
        ],
        "bids": [
            {
                "price": 62534.3,
                "volume": 5.43
            },
            {
                "price": 62533.6,
                "volume": 0.561
            },
            {
                "price": 62533.5,
                "volume": 0.8
            },
            {
                "price": 62532.1,
                "volume": 0.001
            },
            {
                "price": 62531.3,
                "volume": 0.279
            },
            {
      
…(truncated, see openapi.json for full schema)
```

#### `GET /v1/ticker` — Live ticker for pair(s)

**Parameters:**
- `pair` (query, required, string) — Pair or comma list (BTCUSD,ETHUSD) Example: `BTCUSD,ETHUSD`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/kraken-api/v1/ticker?pair=BTCUSD%2CETHUSD"
```

**Response:**
```json
{
    "data": {
        "count": 2,
        "tickers": [
            {
                "ask": 1668.19,
                "bid": 1668.18,
                "pair": "XETHZUSD",
                "spread": 0.01,
                "low_24h": 1654.12,
                "high_24h": 1713.33,
                "open_24h": 1689.81,
                "vwap_24h": 1681.63084,
                "last_price": 1666.62,
                "trades_24h": 30332,
                "volume_24h": 29460.31937469,
                "change_24h_pct": -1.37
            },
            {
                "ask": 62534.4,
                "bid": 62534.3,
                "pair": "XXBTZUSD",
                "spread": 0.1,
                "low_24h": 62383.9,
                "high_24h": 64189,
                "open_24h": 63068.5,
                "vwap_24h": 63312.72636,
                "last_price": 62521.8,
                "trades_24h": 60333,
                "volume_24h": 1841.43027456,
                "change_24h_pct": -0.87
            }
        ],
        "requested": [
            "BTCUSD",
            "ETHUSD"
        ]
    },
    "meta": {
        "timestamp": "2026-06-09T11:39:27.512Z",
        "request_id": "76d2d353-5809-4628-9438-fc37dbcd4f4d"
    },
    "status": "ok",
    "message": "Ticker retrieved successfully",
    "success": true
}
```

### Meta

#### `GET /v1/meta` — Spec

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

**Response:**
```json
{
    "data": {
        "source": "Kraken public REST API (live)",
        "service": "kraken-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/ohlc": "Candlestick history (pair=BTCUSD, interval in minutes: 1,5,15,30,60,240,1440,10080,21600).",
            "GET /v1/ticker": "Live ticker for one or many pairs (pair=BTCUSD,ETHUSD — up to 8).",
            "GET /v1/orderbook": "Live order book to a depth (pair=BTCUSD, depth up to 100)."
        },
        "description": "Live market data from the Kraken cryptocurrency exchange via its public API: the ticker for one or many pairs (last price, best bid/ask and spread, 24h volume/VWAP/high/low/open, change since open and 24h trade count); the live order book to any depth (bid/ask levels with sizes, best bid/ask, spread); and OHLC candlestick history at intervals from 1 minute to 2 weeks. Pairs may be given the friendly way (BTCUSD, ETHEUR). Live, no key, nothing stored. Distinct from aggregate-price and other single-exchange APIs — this is Kraken's own ticker, order book and candles.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-09T11:39:27.653Z",
        "request_id": "092b3e7e-236b-4bb6-8c85-db233a927a1e"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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