Depth: Get order book

API: kraken.com:kraken
Endpoint: /0/public/Depth
Response format: application/json
Auth: unknown
Method: GET
Last Status: 200
Latency: 197ms

Description

Returns the current order book depth with sorted arrays of bids (buy orders) and asks (sell orders). Each entry contains price, volume, and timestamp. Use this to analyze market depth, identify support/resistance levels, and calculate bid-ask spreads.

From spec: Get the order book (bids and asks) for an asset pair.

Usage Tips

- Pair format: Use Kraken's standardized format like XXBTZUSD for Bitcoin/USD, XETHZUSD for Ethereum/USD - Count parameter: Maximum 500 for public endpoint; higher limits require authentication - Data is real-time but may be slightly delayed - Timestamp is in seconds since Unix epoch

Parameters (2)

count (integer, query, optional, default: 100)

Maximum number of asks/bids (1-500). Default: 100.

Constraints: {'minimum': 1, 'maximum': 500}

pair (string, query, required)

Asset pair to get book for (required)

Examples (1)

Get Bitcoin/USD order book with top 5 levels probe-gate

Demonstrates fetching the top 5 bid and ask price levels for BTC/USD to analyze current market depth.

curl 'https://api.kraken.com/0/public/Depth?pair=XXBTZUSD&count=5'
import requests

resp = requests.get(
    "https://api.kraken.com/0/public/Depth",
    params={
        'pair': 'XXBTZUSD',
        'count': '5',
    },
)
data = resp.json()
import zingu_apis

api = zingu_apis.api("kraken")
result = api.fetch("0/public/Depth", pair="XXBTZUSD", count=5)

for item in result:
    print(item)
const resp = await fetch("https://api.kraken.com/0/public/Depth?pair=XXBTZUSD&count=5");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 00:31:00.148465 200 197ms
2026-04-15 01:51:42.291970 200 190ms
2026-04-14 00:57:19.560239 200 260ms
2026-04-12 13:25:45.523500 200 167ms
2026-04-10 02:41:57.962344 200 1369ms
2026-04-09 00:03:41.619519 200 176ms