Overview
Kraken is one of the oldest and most trusted U.S.-regulated cryptocurrency exchanges, offering a robust REST API for accessing real-time market data, account management, and order execution. Public endpoints for ticker data, OHLC candles, and order books require no authentication, making it easy to start exploring without an account. Private trading endpoints use a HMAC-SHA512 signature scheme for secure access.
Beginner Tip
Try the public ticker endpoint first — it requires no API key and returns price data for any trading pair; Kraken asset names can differ from conventions (Bitcoin is "XXBT" not "BTC"), so check the /Assets endpoint to confirm correct names.
Measurement Record
What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.
- Request
- GET https://api.kraken.com/0/public/Ticker?pair=XBTUSD
- Result
- HTTP 200 · application/json · 309 bytes · compressed
- Response time
- 35 ms (median of 3) · fastest 32 ms
- Transport
- TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
- Browser CORS
- Allowed — Access-Control-Allow-Origin: https://apisscore.com
- Served by
- cloudflare
- Recorded
- 2026-08-10
Fields Returned
Top-level fields present in the response we captured, with the type and value we actually received.
| Field | Type | Value received |
|---|---|---|
| XXBTZUSD | object | {9 fields} |
Captured Response
Captured from a real request to https://api.kraken.com/0/public/Ticker?pair=XBTUSD on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.
{
"error": [],
"result": {
"XXBTZUSD": {
"a": [
"63953.60000"
],
"b": [
"63953.50000"
],
"c": [
"63951.90000"
],
"v": [
"1072.12575824"
],
"p": [
"64426.16452"
],
"t": [
38802
],
"l": [
"63750.00000"
],
"h": [
"65328.80000"
],
"o": "64860.00000"
}
}
} Field Reference
error List of error strings; empty array means the request succeeded. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://docs.kraken.com/rest/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
How This API Fails
We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.
{
"error": [
"EGeneral:Unknown method"
]
} Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Alternatives to Kraken
Technical alternatives for different use cases.
Established exchange with strong security track record
Number of trading pairs and liquidity depth
Security-focused trading with staking support
Similar APIs
View All →Binance
⭐ Beginner's PickBinance Spot API provides real-time and historical market data for thousands of cryptocurrency trading pairs on the world's largest crypto exchange by volume.
BitcoinAverage
BitcoinAverage aggregates price data from dozens of global cryptocurrency exchanges to produce weighted average prices for Bitcoin and other digital assets.
Bitfinex
Bitfinex is a professional cryptocurrency exchange offering one of the most comprehensive trading APIs for both spot and margin markets.
Bitmex
BitMEX is a derivatives exchange specializing in perpetual swaps and futures contracts for Bitcoin and other cryptocurrencies.
1inch
⭐ Beginner's Pick1inch is a decentralized exchange (DEX) aggregator that finds the best swap routes across protocols like Uniswap, SushiSwap, and Curve.