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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
exchange | text | Exchange | 3 of 3 |
pair | text | Pair | 3 of 3 |
venue_symbol | text | Venue symbol | 3 of 3 |
side | text | Side | 3 of 3 |
level | number | Level | 3 of 3 |
price | number | Price | 3 of 3 |
size | number | Size | 3 of 3 |
value_quote | number | Value quote | 3 of 3 |
cumulative_size | number | Cumulative size | 3 of 3 |
orders_count | number | Orders count | 0 of 3 |
distance_bps | number | Distance bps | 3 of 3 |
mid_price | number | Mid price | 3 of 3 |
spread_bps | number | Spread bps | 3 of 3 |
depth_1pct_quote | number | Depth 1pct quote | 3 of 3 |
book_at | date and time | Book at | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Exchange | Pair | Venue symbol | Side | Level | Size | Value quote | Cumulative size | Orders count | Distance bps | Spread bps | Depth 1pct quote | Price | Mid price | Book at |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | kraken | BTC-USDT | XBTUSDT | bid | 1 | 0.038 | 1,660.2732 | 0.038 | — | 1.29% | 2.586 | 1,326,267.92% | 43,691.4 | 43,697.05 | Dec 6, 2026 |
| 2 | kraken | BTC-USDT | XBTUSDT | ask | 1 | 0.052 | 2,272.5404 | 0.052 | — | 1.29% | 2.586 | 1,531,870.83% | 43,702.7 | 43,697.05 | Dec 6, 2026 |
| 3 | kraken | BTC-USDT | XBTUSDT | bid | 2 | 0.095 | 4,150.6735 | 0.133 | — | 1.32% | 2.586 | 1,326,267.92% | 43,691.3 | 43,697.05 | Dec 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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.