# Kraken API

> Kraken returns cryptocurrency prices and 24-hour trading statistics, available as a workflow and API.

Kraken returns current coin prices and 24-hour trading statistics using a cryptocurrency name or symbol and an optional quote currency.

- Page: https://fous.com/workflows/kraken
- Handle: `@kraken`
- Category: [Blockchain](https://fous.com/workflows/category/blockchain)
- Source website: https://kraken.com
- Last verified: Sep 30, 2026
- Fous is not affiliated with Kraken.

## Methods

### Get coin price

Operation `get_coin_price`, version 1. 1 credit per call.

Get a coin’s current price and 24-hour trading statistics in a chosen currency on Kraken. Change since today's open uses midnight UTC; a dedicated price page may be unavailable for some less common symbols.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `coin` | string | yes | `"Bitcoin"` | Cryptocurrency name or symbol, for example Bitcoin or ETH. |
| `currency` | string | no | `"USD"` | Currency to quote the coin in, for example USD, EUR, GBP, CAD or USDT. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "coin"
  ],
  "properties": {
    "coin": {
      "type": "string",
      "description": "Cryptocurrency name or symbol, for example Bitcoin or ETH.",
      "examples": [
        "Bitcoin",
        "ETH",
        "Dogecoin"
      ]
    },
    "currency": {
      "type": "string",
      "default": "USD",
      "description": "Currency to quote the coin in, for example USD, EUR, GBP, CAD or USDT.",
      "examples": [
        "USD",
        "EUR",
        "USDT"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "coin": "Bitcoin",
      "currency": "USD"
    },
    {
      "coin": "ETH",
      "currency": "EUR"
    },
    {
      "coin": "Dogecoin",
      "currency": "USDT"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `ask` | number | `83063` | Best ask price in the quote currency. |
| `bid` | number | `83062.9` | Best bid price in the quote currency. |
| `pair` | string | `"BTC/USD"` | Coin and quote currency as familiar symbols, such as BTC/USD. |
| `time` | string | `"2026-09-29T04:50:05+00:00"` | UTC time when this quote was retrieved. |
| `low_24h` | number | `82566.4` | Lowest trade price over the preceding 24 hours in the quote currency. |
| `high_24h` | number | `84338.1` | Highest trade price over the preceding 24 hours in the quote currency. |
| `vwap_24h` | number | `83269.14741` | Volume-weighted average price over the preceding 24 hours in the quote currency. |
| `page_link` | string or null | `"https://www.kraken.com/prices/bitcoin"` | Kraken price page for the coin, when available. |
| `last_price` | number | `83060.3` | Most recent trade price in the quote currency. |
| `trades_24h` | integer | `153902` | Number of trades over the preceding 24 hours. |
| `volume_24h` | number | `2795.19438004` | Traded volume in units of the coin over the preceding 24 hours. |
| `kraken_pair_code` | string | `"XXBTZUSD"` | Kraken internal pair code, for example XXBTZUSD. |
| `change_since_today_open_pct` | number or null | `-0.4821315389988534` | Percentage change from the midnight UTC opening price to the last trade. |

**Example input**

```json
{
  "coin": "Bitcoin",
  "currency": "USD"
}
```

**Example output**

```json
{
  "ask": 83063,
  "bid": 83062.9,
  "pair": "BTC/USD",
  "time": "2026-09-29T04:50:05+00:00",
  "low_24h": 82566.4,
  "high_24h": 84338.1,
  "vwap_24h": 83269.14741,
  "page_link": "https://www.kraken.com/prices/bitcoin",
  "last_price": 83060.3,
  "trades_24h": 153902,
  "volume_24h": 2795.19438004,
  "kraken_pair_code": "XXBTZUSD",
  "change_since_today_open_pct": -0.4821315389988534
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@kraken",
  "visibility": "public",
  "operation": "get_coin_price",
  "version": 1,
  "input": {
    "coin": "Bitcoin",
    "currency": "USD"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@kraken\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_coin_price\",\n  \"version\": 1,\n  \"input\": {\n    \"coin\": \"Bitcoin\",\n    \"currency\": \"USD\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@kraken",
  "visibility": "public",
  "operation": "get_coin_price",
  "version": 1,
  "input": {
    "coin": "Bitcoin",
    "currency": "USD"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@kraken","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare coin prices in different currencies
- Track 24-hour trading ranges for selected coins
- Monitor coin trading volume and trade counts
- Review price changes since midnight UTC

## FAQ

### Is Fous affiliated with Kraken?

No. Fous is not affiliated with Kraken. This workflow reads the public kraken.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Kraken account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from kraken.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 30, 2026.

### What is a coin’s current price?

Get coin price returns the most recent trade price, bid, and ask in the chosen currency.

### What were a coin’s high and low prices over 24 hours?

Get coin price returns the highest and lowest trade prices over the preceding 24 hours.

### How much has a coin changed since midnight UTC?

Get coin price returns the percentage change from the midnight UTC opening price to the last trade.

## Related

- [Coinbase API](https://fous.com/workflows/coinbase.md): Coinbase provides public cryptocurrency prices and market overviews, including changing spot, buy, and sell quotes and 24-hour statistics; unavailable page facts may be missing.
- [Binance API](https://fous.com/workflows/binance.md): Binance provides latest prices and rolling 24-hour statistics for active spot pairs, historical spot candles for a selected date range or newest first (up to 1,000), and current aggregated bid and ask levels.
- [CoinMarketCap API](https://fous.com/workflows/coinmarketcap.md): CoinMarketCap returns prices, rankings and current Fear and Greed readings; gainers and losers include up to 30 top-100 coins above $50,000 in 24-hour volume.
- [CoinGecko API](https://fous.com/workflows/coingecko.md): CoinGecko returns cryptocurrency prices and histories, sector rankings and details, and trending coins; non-USD historical values cover 365 days, histories 7–365 days, and today’s prices may change.
- [Kitco API](https://fous.com/workflows/kitco.md): Precious metals spot prices and market coverage.
- [Twelve Data API](https://fous.com/workflows/twelve-data.md): Market data for stocks, ETFs, foreign exchange and cryptocurrencies.
- [Yahoo Finance API](https://fous.com/workflows/yahoo-finance.md): Yahoo Finance provides quotes, movers, company financials, analyst ratings, earnings, news, and up to 5,000 price rows with adjusted returns; prices may be delayed.
- [Google Finance API](https://fous.com/workflows/google-finance.md): Google Finance returns possibly delayed prices and figures, indexes, up to four movers timed by oldest quote, currency conversions, and up to five financial periods.
- [All Blockchain workflows](https://fous.com/workflows/category/blockchain)
