{"api":{"id":"api_c68d8e9c8a3f830a9b20a235","slug":"okx-liquidation-orders","name":"OKX Liquidation Orders API","description":"The latest filled liquidation orders on OKX derivatives for a chosen underlying, with side, size, bankruptcy price and loss, and time. Built for volatility traders and crypto media covering liquidation cascades.","kind":"ready_made","visibility":"public","domain":"okx.com","source_url":"https://www.okx.com/api/v5/public/liquidation-orders","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":7,"created_at":"2026-12-06T04:45:48.384Z","updated_at":"2026-12-06T04:45:48.384Z","runnable":true},"version":"1.0","contract_hash":"d81f070d8cf13a107810e8e0b6b5da7ba1e457a2e1005fad15ca3d3ce4e88fac","fields":[{"name":"inst_id","type":"string","description":"OKX instrument id that was liquidated.","required":true,"coverage":1,"example":"BTC-USDT-SWAP"},{"name":"pos_side","type":"string","description":"Position side: long, short or net.","required":false,"coverage":1,"example":"short"},{"name":"side","type":"string","description":"Order side that closed the position: buy or sell.","required":false,"coverage":1,"example":"buy"},{"name":"size","type":"number","description":"Liquidated size in contracts.","required":false,"coverage":1,"example":1.32},{"name":"bankruptcy_price","type":"number","description":"Bankruptcy price of the position.","required":false,"coverage":1,"example":44455.4},{"name":"bankruptcy_loss","type":"number","description":"Loss beyond the bankruptcy price, 0 if none.","required":false,"coverage":1,"example":0},{"name":"liquidated_at","type":"datetime","description":"Time of the liquidation (UTC).","required":true,"coverage":1,"example":"2026-12-06T04:21:58.255Z"}],"inputs":[{"name":"underlying","type":"string","description":"Underlying such as BTC-USDT.","example":"BTC-USDT","required":true},{"name":"inst_type","type":"string","description":"Instrument type: SWAP or FUTURES.","default":"SWAP","example":"SWAP","enum":["SWAP","FUTURES"]},{"name":"side","type":"string","description":"Keep only buy or sell liquidations. Leave empty for both.","example":"buy","enum":["buy","sell"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"bankruptcy_loss":{"description":"Loss beyond the bankruptcy price, 0 if none.","type":"number"},"bankruptcy_price":{"description":"Bankruptcy price of the position.","type":"number"},"inst_id":{"description":"OKX instrument id that was liquidated.","type":"string"},"liquidated_at":{"description":"Time of the liquidation (UTC).","format":"date-time","type":"string"},"pos_side":{"description":"Position side: long, short or net.","type":"string"},"side":{"description":"Order side that closed the position: buy or sell.","type":"string"},"size":{"description":"Liquidated size in contracts.","type":"number"}},"required":["inst_id","liquidated_at"],"title":"OKX Liquidation Orders API","type":"object"},"samples":[{"inst_id":"BTC-USDT-SWAP","pos_side":"short","side":"buy","size":1.32,"bankruptcy_price":44455.4,"bankruptcy_loss":0,"liquidated_at":"2026-12-06T04:21:58.255Z"},{"inst_id":"BTC-USDT-SWAP","pos_side":"short","side":"buy","size":78.54,"bankruptcy_price":44455.4,"bankruptcy_loss":0,"liquidated_at":"2026-12-06T04:21:58.233Z"},{"inst_id":"BTC-USDT-SWAP","pos_side":"short","side":"buy","size":1.01,"bankruptcy_price":44452.9,"bankruptcy_loss":0,"liquidated_at":"2026-12-06T04:21:58.053Z"}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"bankruptcy_loss":1,"bankruptcy_price":1,"inst_id":1,"liquidated_at":1,"pos_side":1,"side":1,"size":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-06T04:45:48.384Z","activated_at":"2026-12-06T04:45:48.384Z","active":true,"contract_hash":"d81f070d8cf13a107810e8e0b6b5da7ba1e457a2e1005fad15ca3d3ce4e88fac","fields_count":7}]}