Discover/kraken.com API
live

kraken.com APIkraken.com

Access Kraken exchange data: crypto assets, trading pairs, OHLCV candlesticks, tickers, and spread history via a single REST API.

Endpoints
6
Updated
10d ago
Try it

No input parameters required.

api.parse.bot/scraper/aaf5f047-34ee-4256-af80-989a25297ee9/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/aaf5f047-34ee-4256-af80-989a25297ee9/get_assets' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 6 totalclick to expand

Get list of all available crypto assets on Kraken exchange. Returns every asset with its metadata including display name, decimals, and status.

Input

No input parameters required.

Response
{
  "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.

Common use cases
  • 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.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 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.

Frequently asked questions
Does Kraken have an official public API?+
Yes. Kraken provides an official public REST API documented at https://docs.kraken.com/rest/. It covers market data, trading, and account management. The Parse API surfaces the public market data portions of that same exchange.
What does get_ohlc return and how does the since parameter behave?+
get_ohlc returns up to 720 candlestick entries per request, each with timestamp, open, high, low, close, vwap, volume, and trade count. The since parameter accepts a Unix timestamp, but Kraken always returns the most recent data available — it does not guarantee a strict start boundary. Use last_timestamp from the response for sequential pagination across intervals.
Why do some Kraken pair names look unusual, like XXBTZUSD?+
Kraken prefixes certain legacy asset identifiers with X (crypto) or Z (fiat). Bitcoin becomes XBT internally, so the Bitcoin/USD pair is XXBTZUSD. The get_asset_pairs endpoint exposes both the canonical id and the wsname (websocket name, e.g. XBT/USD), making it the reliable source for discovering valid pair identifiers to use with get_ticker and get_ohlc.
Does the API cover order book depth data?+
Not currently. The API covers ticker prices, OHLCV candlesticks, spread snapshots, and asset/pair metadata. Full order book depth (level 2 data with multiple bid/ask levels) is not exposed. You can fork this API on Parse and revise it to add an order book endpoint.
Does the API include trade history or individual executed trades?+
Not currently. The API returns aggregate price and volume data via get_ticker and get_ohlc, and spread snapshots via get_spread, but individual trade-level history is not included. You can fork this API on Parse and revise it to add a recent trades endpoint.
Page content last updated . Spec covers 6 endpoints from kraken.com.
Related APIs in Crypto Web3See all →
coinbase.com API
Monitor real-time cryptocurrency market movements by viewing top gainers and losers, along with ranked coin listings showing price changes across different time periods. Stay informed on which cryptocurrencies are performing best to make timely investment decisions.
app.hyperliquid.xyz API
Access real-time leaderboard rankings, market data for perpetual and spot markets, order books, and detailed trader analytics on the Hyperliquid decentralized exchange. Monitor top traders' open positions and identify delta-neutral trading strategies.
etoro.com API
Monitor top eToro traders by accessing their profiles, portfolio holdings, performance statistics, and trading history to inform your investment decisions. Discover trending stocks and cryptocurrencies, search for specific instruments, and view detailed market data and news to stay updated on investment opportunities.
blur.io API
Access NFT collection data on Blur.io, including floor prices, best bids, listed tokens, and recent activity. Authenticate with an Ethereum wallet to place collection bids and retrieve portfolio holdings.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
nseindia.com API
Track live NSE stock prices, monitor indices, analyze option chains, and access corporate announcements with real-time market data from India's National Stock Exchange. View equity quotes with full order books, identify top gainers/losers, analyze 52-week highs/lows, and explore historical price trends all in structured JSON format.
opensea.io API
Search NFT collections and discover detailed stats, browse individual items, and track collection activity all in one place. Get real-time insights into collection performance and find the NFTs you're looking for on OpenSea.
studio.glassnode.com API
Access comprehensive on-chain and market analytics for cryptocurrencies, including asset fundamentals, supply dynamics, futures data, and profit/loss metrics. Search and analyze assets with historical chart data and market overview information to track crypto performance and trends.