Skip to Content

Kraken Data Parser & API

Kraken is one of the oldest and most trusted US-based cryptocurrency exchanges, and StockAPIS extracts its real-time market data — spot and futures prices, full order books, OHLC candles, recent trades, bid/ask spreads and staking yields across 200+ trading pairs — through a single REST API. Kraken offers an official public API, and StockAPIS normalizes it to the same schema you use for every other venue, so you query Kraken, Binance and Coinbase the same way without juggling each exchange’s idiosyncratic pair codes and response formats.

TypeCrypto exchange (spot + futures + staking)
HQUnited States (San Francisco)
OwnerPayward, Inc.
Asset classesCrypto spot, Perpetual futures, Margin, Staking, OTC
Coverage200+ trading pairs
ScaleTop-5 US crypto exchange by spot volume
API accessOfficial API
Parse priority★★★★★
Official sitewww.kraken.com

Platform Overview

Market Position

  • Founded in 2011, one of the longest-running and most reputable crypto exchanges
  • A top-five US exchange by spot volume, known for deep fiat liquidity and security
  • 200+ trading pairs spanning spot, margin, perpetual futures and staking
  • Official public REST + WebSocket API, complemented by StockAPIS’s unified normalization

Data Coverage

StockAPIS exposes the full Kraken market surface:

  • Spot market data — real-time last price, 24h volume, VWAP, bid/ask, 24h high/low
  • Order book — live depth snapshots with configurable level counts
  • Trades — recent trade history with price, volume, side and timestamps
  • OHLC — candlestick data across intervals (1m → 1w) for charting and backtesting
  • Spread — time-series bid/ask spread data for liquidity analysis
  • Futures & staking — funding rates, open interest, and staking APY rates by asset

Quick Start

import stockapis client = stockapis.Client(api_key="your-api-key") # Real-time ticker for a Kraken pair btc = client.kraken.get_market_data(pair="XBTUSD") print(f"Bitcoin: ${btc['lastPrice']} · 24h vol {btc['volume']}")
const { StockAPIS } = require("stockapis"); const client = new StockAPIS({ apiKey: "your-api-key" }); // Live order book (top 100 levels) const book = await client.kraken.getOrderBook({ pair: "XBTUSD", count: 100 }); console.log(book.bids[0], book.asks[0]);

Sample API Response

{ "success": true, "data": { "pair": "XBTUSD", "lastPrice": "43250.10", "bidPrice": "43250.00", "askPrice": "43250.10", "vwap": "43180.55", "high24h": "43890.00", "low24h": "42600.00", "volume": "4859.12", "trades24h": 123456, "opening": "42750.00" }, "metadata": { "source": "kraken", "timestamp": "2024-01-15T10:30:00.000Z", "cache_hit": false } }

Use Cases

  • Algorithmic trading — low-latency price and order-book feeds for market-making and arbitrage bots
  • Quant research — historical OHLC and trades for backtesting and signal development
  • Cross-exchange arbitrage — compare Kraken prices against Binance, Coinbase and other venues on one schema
  • Staking & yield monitoring — track staking APY rates and funding-rate spreads for income strategies

Frequently Asked Questions

Does Kraken have an official API? Yes — Kraken provides a public REST and WebSocket API for market data. StockAPIS wraps it in a unified schema so Kraken data matches every other source you pull.

What data can I get from Kraken through StockAPIS? Spot and futures prices, full order books, recent trades, OHLC candles, bid/ask spreads, funding rates, open interest and staking APY across 200+ pairs.

Can I stream Kraken data in real time? Yes — StockAPIS supports real-time streaming for tickers, trades and order-book depth via WebSocket.

Last updated on