Crypto Order Book Depth

Order book snapshots for crypto pairs on Kraken, Coinbase, OKX and KuCoin: the best bid and ask levels with price, size and order count, plus the mid price, the spread in basis points and the value of orders within 1% of the mid on each side.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 15 fieldsv1.0

Data from api.kraken.com/0/public/Depth?pair=XBTUSD&count=5

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Exchangesoptional
Exchanges to read: kraken, coinbase, okx, kucoin. Leave empty for all four. One per line, or separated by commas.
Pairs
Trading pairs written BASE-QUOTE, such as BTC-USD or ETH-USDT; up to 10 per run. One per line, or separated by commas.
Example: BTC-USD
Depthoptional
Price levels per side, from 1 to 100. Each level is one row.
Example: 5

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/crypto-order-book-depth/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/crypto-order-book-depth/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"pairs":["BTC-USD"]},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

exchangeslist
Exchanges to read: kraken, coinbase, okx, kucoin. Leave empty for all four.
example: krakenone of: kraken, coinbase, okx, kucoin
pairslistrequired
Trading pairs written BASE-QUOTE, such as BTC-USD or ETH-USDT; up to 10 per run.
example: BTC-USD
depthnumber
Price levels per side, from 1 to 100. Each level is one row.
default: 10example: 5

What's in each record

15 fields.

Basics

  • Exchange

    Exchange id: kraken, coinbase, okx or kucoin.

    Example kraken

  • Pair

    The pair as BASE-QUOTE, written the same way for every exchange, such as BTC-USD.

    Example BTC-USDT

  • Venue symbol

    The exchange's own name for the market, such as XXBTZUSD on Kraken or BTC-USDT on OKX.

    Example XBTUSDT

  • Side

    bid (orders to buy) or ask (orders to sell).

    Example bid

  • Level

    Position from the best price on this side: 1 is the best bid or the best ask.

    Example 1

  • Size

    Amount offered at this price, in the base asset.

    Example 0.038

  • Value quote

    Price times size: what this level is worth in the quote asset.

    Example 1,660.2732

  • Cumulative size

    Total size from level 1 to this level on the same side, in the base asset.

    Example 0.038

  • Orders count

    Number of orders resting at this price, where the exchange publishes it.

    Example 1

  • Distance bps

    How far this price is from the mid price, in basis points (1 bp is 0.01%).

    Example 1.29%

  • Spread bps

    Best ask minus best bid, in basis points of the mid price.

    Example 2.586

  • Depth 1pct quote

    Value of all orders on this side within 1% of the mid price, in the quote asset.

    Example 1,326,267.92%

Prices

  • Price

    Price of this level, in the quote asset.

    Example 43,691.4

  • Mid price

    Midpoint between the best bid and the best ask.

    Example 43,697.05

Dates

  • Book at

    When the exchange stamped the order book (UTC).

    Example Dec 6, 2026

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
exchangetextExchange3 of 3
pairtextPair3 of 3
venue_symboltextVenue symbol3 of 3
sidetextSide3 of 3
levelnumberLevel3 of 3
pricenumberPrice3 of 3
sizenumberSize3 of 3
value_quotenumberValue quote3 of 3
cumulative_sizenumberCumulative size3 of 3
orders_countnumberOrders count0 of 3
distance_bpsnumberDistance bps3 of 3
mid_pricenumberMid price3 of 3
spread_bpsnumberSpread bps3 of 3
depth_1pct_quotenumberDepth 1pct quote3 of 3
book_atdate and timeBook at3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordExchangePairVenue symbolSideLevelSizeValue quoteCumulative sizeOrders countDistance bpsSpread bpsDepth 1pct quotePriceMid priceBook at
1krakenBTC-USDTXBTUSDTbid10.0381,660.27320.038—1.29%2.5861,326,267.92%43,691.443,697.05Dec 6, 2026
2krakenBTC-USDTXBTUSDTask10.0522,272.54040.052—1.29%2.5861,531,870.83%43,702.743,697.05Dec 6, 2026
3krakenBTC-USDTXBTUSDTbid20.0954,150.67350.133—1.32%2.5861,326,267.92%43,691.343,697.05Dec 6, 2026

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • A snapshot taken at the moment of the run, not a streaming feed. Books change many times a second; run it on a schedule to build a history.
  • Up to 10 pairs and 100 levels per side per run. Sizes are in the base asset (BTC for BTC-USD); prices and values are in the quote asset.
  • depth_1pct_quote counts the deepest public book each exchange offers: Kraken 500 levels a side, OKX 5,000, Coinbase the full book, KuCoin 100. It is empty when those levels stop short of 1% from the mid, which is common on KuCoin.
  • orders_count is empty for Kraken and KuCoin, which do not publish it. book_at is the exchange's own time stamp; for Kraken it is the newest level's.
  • A pair an exchange does not list, or an exchange that does not answer, is named in the run's notes and its rows are absent.
  • Book data belongs to the exchanges. Some limit commercial redistribution of their market data, so check an exchange's terms before republishing it.

Version history

A run uses the live version unless the request names another one with version.