# 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/tools/kraken
- Handle: `@kraken`
- Category: [Blockchain](https://fous.com/tools/category/blockchain)
- Source website: https://kraken.com
- Last verified: Sep 30, 2026

## Methods

### Get coin price

Operation `get_coin_price`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_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.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

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=180) 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.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_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);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/kraken`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_coin_price`: Get coin price. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-kraken https://api.fous.com/mcp/tools/kraken --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## 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

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Kraken tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. 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. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified 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/tools/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/tools/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/tools/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/tools/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/tools/kitco.md): Precious metals spot prices and market coverage.
- [Twelve Data API](https://fous.com/tools/twelve-data.md): Market data for stocks, ETFs, foreign exchange and cryptocurrencies.
- [Yahoo Finance API](https://fous.com/tools/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/tools/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 tools](https://fous.com/tools/category/blockchain)
