kraken.com APIkraken.com ↗
Access Kraken exchange data: crypto assets, trading pairs, OHLCV candlesticks, tickers, and spread history via a single REST API.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/aaf5f047-34ee-4256-af80-989a25297ee9/get_assets' \ -H 'X-API-Key: $PARSE_API_KEY'
Get list of all available crypto assets on Kraken exchange. Returns every asset with its metadata including display name, decimals, and status.
No input parameters required.
{
"type": "object",
"fields": {
"count": "integer total number of assets",
"assets": "array of asset objects each containing id, aclass, altname, decimals, display_decimals, status"
},
"sample": {
"data": {
"count": 782,
"assets": [
{
"id": "0G",
"aclass": "currency",
"status": "enabled",
"altname": "0G",
"decimals": 6,
"margin_rate": "0",
"display_decimals": 4
}
]
},
"status": "success"
}
}About the kraken.com API
This API exposes 6 endpoints covering the full scope of Kraken exchange market data, including assets, trading pairs, and price history. Use get_ohlc to pull up to 720 OHLCV candlestick data points per request across nine interval sizes, or get_ticker to retrieve real-time bid, ask, and last-trade prices for one or more trading pairs simultaneously. Asset and pair discovery endpoints make it straightforward to map symbols before querying price data.
Asset and Pair Discovery
The get_assets endpoint returns every crypto asset listed on Kraken, including each asset's id, altname, aclass, decimals, display_decimals, and status. The search_assets endpoint narrows that list with a case-insensitive substring match against id and altname fields — useful for resolving a ticker symbol like ETH or SOL to its canonical Kraken identifier before making price queries.
The get_asset_pairs endpoint returns metadata for every tradable pair, including wsname, base, quote, fees, fees_maker, leverage_buy, leverage_sell, ordermin, and margin parameters. Kraken uses non-obvious pair identifiers — for example, Bitcoin/USD is XXBTZUSD — so querying get_asset_pairs first is the reliable way to discover valid pair names before calling ticker or OHLCV endpoints.
Price and Market Data
The get_ticker endpoint accepts a comma-separated pairs parameter and returns a keyed response object per pair. Each pair object contains a (ask with whole lot and lot volume), b (bid), c (last trade closed price and lot volume), and v (volume). Multiple pairs can be requested in a single call; if any pair name is unrecognized, the response includes an upstream_error field.
get_ohlc accepts a pair name, an optional Unix since timestamp, and an interval in minutes — valid values are 1, 5, 15, 30, 60, 240, 1440, 10080, and 604800. Each returned data point includes timestamp, open, high, low, close, vwap, volume, and trades count. The response also returns last_timestamp for pagination and an interval_label string. Up to 720 data points are returned per request.
Spread History
The get_spread endpoint returns up to 250 recent bid/ask spread snapshots for a given pair. Each entry in the data array contains timestamp, bid, and ask. An optional since Unix timestamp parameter is accepted, though Kraken returns the most recent data available regardless of the value provided — the same behavior applies to the since parameter on get_ohlc.
- Build a crypto price dashboard using get_ticker to display real-time bid/ask and last-trade prices across multiple pairs.
- Backtest trading strategies by pulling OHLCV candlestick data from get_ohlc at 1-minute, hourly, or daily intervals.
- Monitor bid/ask spread tightness over time for a specific trading pair using get_spread snapshots.
- Resolve user-supplied ticker symbols to canonical Kraken pair names by searching with search_assets before querying price endpoints.
- Enumerate all tradable pairs and their minimum order sizes using get_asset_pairs to validate user order inputs.
- Track leverage and margin availability per trading pair using the leverage_buy and leverage_sell fields from get_asset_pairs.
- Build a crypto asset directory filtered by status using the full asset list from get_assets.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.