{"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},"version":"1.0","contract_hash":"d3cb3e20fcbc7c4f63a9adff7d09b6cba3085093f43c0470e536e9f21a995c78","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:33:09.194Z","activated_at":"2026-12-06T03:33:09.194Z","active":true,"contract_hash":"d3cb3e20fcbc7c4f63a9adff7d09b6cba3085093f43c0470e536e9f21a995c78","fields_count":15}]}