{"api":{"id":"api_9b57abc678dd21407cc1446c","slug":"crypto-order-book-depth","name":"Crypto Order Book Depth","description":"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.","kind":"ready_made","visibility":"public","domain":"api.kraken.com","source_url":"https://api.kraken.com/0/public/Depth?pair=XBTUSD&count=5","category":"finance","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":15,"created_at":"2026-12-06T03:33:09.194Z","updated_at":"2026-12-06T03:33:09.194Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"exchange","type":"string","description":"Exchange id: kraken, coinbase, okx or kucoin.","required":true,"coverage":1,"example":"kraken"},{"name":"pair","type":"string","description":"The pair as BASE-QUOTE, written the same way for every exchange, such as BTC-USD.","required":true,"coverage":1,"example":"BTC-USDT"},{"name":"venue_symbol","type":"string","description":"The exchange's own name for the market, such as XXBTZUSD on Kraken or BTC-USDT on OKX.","required":false,"coverage":1,"example":"XBTUSDT"},{"name":"side","type":"string","description":"bid (orders to buy) or ask (orders to sell).","required":true,"coverage":1,"example":"bid"},{"name":"level","type":"integer","description":"Position from the best price on this side: 1 is the best bid or the best ask.","required":true,"coverage":1,"example":1},{"name":"price","type":"number","description":"Price of this level, in the quote asset.","required":false,"coverage":1,"example":43691.4},{"name":"size","type":"number","description":"Amount offered at this price, in the base asset.","required":false,"coverage":1,"example":0.038},{"name":"value_quote","type":"number","description":"Price times size: what this level is worth in the quote asset.","required":false,"coverage":1,"example":1660.2732},{"name":"cumulative_size","type":"number","description":"Total size from level 1 to this level on the same side, in the base asset.","required":false,"coverage":1,"example":0.038},{"name":"orders_count","type":"integer","description":"Number of orders resting at this price, where the exchange publishes it.","required":false,"coverage":0.2,"example":1},{"name":"distance_bps","type":"number","description":"How far this price is from the mid price, in basis points (1 bp is 0.01%).","required":false,"coverage":1,"example":1.29},{"name":"mid_price","type":"number","description":"Midpoint between the best bid and the best ask.","required":false,"coverage":1,"example":43697.05},{"name":"spread_bps","type":"number","description":"Best ask minus best bid, in basis points of the mid price.","required":false,"coverage":1,"example":2.586},{"name":"depth_1pct_quote","type":"number","description":"Value of all orders on this side within 1% of the mid price, in the quote asset.","required":false,"coverage":1,"example":1326267.92},{"name":"book_at","type":"datetime","description":"When the exchange stamped the order book (UTC).","required":false,"coverage":1,"example":"2026-12-06T02:32:00.000Z"}],"inputs":[{"name":"exchanges","type":"array","description":"Exchanges to read: kraken, coinbase, okx, kucoin. Leave empty for all four.","example":["kraken"],"enum":["kraken","coinbase","okx","kucoin"]},{"name":"pairs","type":"array","description":"Trading pairs written BASE-QUOTE, such as BTC-USD or ETH-USDT; up to 10 per run.","example":["BTC-USD"],"required":true},{"name":"depth","type":"integer","description":"Price levels per side, from 1 to 100. Each level is one row.","default":10,"example":5}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"book_at":{"description":"When the exchange stamped the order book (UTC).","format":"date-time","type":"string"},"cumulative_size":{"description":"Total size from level 1 to this level on the same side, in the base asset.","type":"number"},"depth_1pct_quote":{"description":"Value of all orders on this side within 1% of the mid price, in the quote asset.","type":"number"},"distance_bps":{"description":"How far this price is from the mid price, in basis points (1 bp is 0.01%).","type":"number"},"exchange":{"description":"Exchange id: kraken, coinbase, okx or kucoin.","type":"string"},"level":{"description":"Position from the best price on this side: 1 is the best bid or the best ask.","type":"integer"},"mid_price":{"description":"Midpoint between the best bid and the best ask.","type":"number"},"orders_count":{"description":"Number of orders resting at this price, where the exchange publishes it.","type":"integer"},"pair":{"description":"The pair as BASE-QUOTE, written the same way for every exchange, such as BTC-USD.","type":"string"},"price":{"description":"Price of this level, in the quote asset.","type":"number"},"side":{"description":"bid (orders to buy) or ask (orders to sell).","type":"string"},"size":{"description":"Amount offered at this price, in the base asset.","type":"number"},"spread_bps":{"description":"Best ask minus best bid, in basis points of the mid price.","type":"number"},"value_quote":{"description":"Price times size: what this level is worth in the quote asset.","type":"number"},"venue_symbol":{"description":"The exchange's own name for the market, such as XXBTZUSD on Kraken or BTC-USDT on OKX.","type":"string"}},"required":["exchange","pair","side","level"],"title":"Crypto Order Book Depth","type":"object"},"samples":[{"exchange":"kraken","pair":"BTC-USDT","venue_symbol":"XBTUSDT","side":"bid","level":1,"price":43691.4,"size":0.038,"value_quote":1660.2732,"cumulative_size":0.038,"orders_count":null,"distance_bps":1.29,"mid_price":43697.05,"spread_bps":2.586,"depth_1pct_quote":1326267.92,"book_at":"2026-12-06T02:32:00.000Z"},{"exchange":"kraken","pair":"BTC-USDT","venue_symbol":"XBTUSDT","side":"ask","level":1,"price":43702.7,"size":0.052,"value_quote":2272.5404,"cumulative_size":0.052,"orders_count":null,"distance_bps":1.29,"mid_price":43697.05,"spread_bps":2.586,"depth_1pct_quote":1531870.83,"book_at":"2026-12-06T02:32:00.000Z"},{"exchange":"kraken","pair":"BTC-USDT","venue_symbol":"XBTUSDT","side":"bid","level":2,"price":43691.3,"size":0.095,"value_quote":4150.6735,"cumulative_size":0.133,"orders_count":null,"distance_bps":1.32,"mid_price":43697.05,"spread_bps":2.586,"depth_1pct_quote":1326267.92,"book_at":"2026-12-06T02:32:00.000Z"}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"book_at":1,"cumulative_size":1,"depth_1pct_quote":1,"distance_bps":1,"exchange":1,"level":1,"mid_price":1,"orders_count":0,"pair":1,"price":1,"side":1,"size":1,"spread_bps":1,"value_quote":1,"venue_symbol":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_9b57abc678dd21407cc1446c/run","openapi":"https://pullrow.dev/v1/apis/api_9b57abc678dd21407cc1446c/openapi.json","contract":"https://pullrow.dev/v1/apis/api_9b57abc678dd21407cc1446c/contract.json","page":"https://pullrow.dev/catalog/crypto-order-book-depth"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["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."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"exchange","label":"Exchange","description":"Exchange id: kraken, coinbase, okx or kucoin.","group":"Basics","shown":true,"written":false},{"name":"pair","label":"Pair","description":"The pair as BASE-QUOTE, written the same way for every exchange, such as BTC-USD.","group":"Basics","shown":true,"written":false},{"name":"venue_symbol","label":"Venue symbol","description":"The exchange's own name for the market, such as XXBTZUSD on Kraken or BTC-USDT on OKX.","group":"Basics","shown":true,"written":false},{"name":"side","label":"Side","description":"bid (orders to buy) or ask (orders to sell).","group":"Basics","shown":true,"written":false},{"name":"level","label":"Level","description":"Position from the best price on this side: 1 is the best bid or the best ask.","group":"Basics","shown":true,"written":false},{"name":"price","label":"Price","description":"Price of this level, in the quote asset.","group":"Pay","shown":true,"written":false},{"name":"size","label":"Size","description":"Amount offered at this price, in the base asset.","group":"Basics","shown":true,"written":false},{"name":"value_quote","label":"Value quote","description":"Price times size: what this level is worth in the quote asset.","group":"Basics","shown":true,"written":false},{"name":"cumulative_size","label":"Cumulative size","description":"Total size from level 1 to this level on the same side, in the base asset.","group":"Basics","shown":true,"written":false},{"name":"orders_count","label":"Orders count","description":"Number of orders resting at this price, where the exchange publishes it.","group":"Basics","shown":true,"written":false},{"name":"distance_bps","label":"Distance bps","description":"How far this price is from the mid price, in basis points (1 bp is 0.01%).","group":"Basics","shown":true,"written":false},{"name":"mid_price","label":"Mid price","description":"Midpoint between the best bid and the best ask.","group":"Pay","shown":true,"written":false},{"name":"spread_bps","label":"Spread bps","description":"Best ask minus best bid, in basis points of the mid price.","group":"Basics","shown":true,"written":false},{"name":"depth_1pct_quote","label":"Depth 1pct quote","description":"Value of all orders on this side within 1% of the mid price, in the quote asset.","group":"Basics","shown":true,"written":false},{"name":"book_at","label":"Book at","description":"When the exchange stamped the order book (UTC).","group":"Dates","shown":true,"written":false}],"inputs":[{"name":"exchanges","label":"Exchanges","help":"Exchanges to read: kraken, coinbase, okx, kucoin. Leave empty for all four.","example":"kraken","written":false},{"name":"pairs","label":"Pairs","help":"Trading pairs written BASE-QUOTE, such as BTC-USD or ETH-USDT; up to 10 per run.","example":"BTC-USD","written":false},{"name":"depth","label":"Depth","help":"Price levels per side, from 1 to 100. Each level is one row.","example":"5","written":false}]}},"incidents":[]}