{"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,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","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},"links":{"run":"https://pullrow.dev/v1/apis/api_c68d8e9c8a3f830a9b20a235/run","openapi":"https://pullrow.dev/v1/apis/api_c68d8e9c8a3f830a9b20a235/openapi.json","contract":"https://pullrow.dev/v1/apis/api_c68d8e9c8a3f830a9b20a235/contract.json","page":"https://pullrow.dev/catalog/okx-liquidation-orders"},"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":["OKX returns only the most recent liquidations (up to 100 filled orders per request), not a long history.","Size is in contracts for swaps and futures, so convert with the contract size for a notional value.","bankruptcy_loss is often 0 because most liquidations fill without loss.","OKX limits public requests to 20 per 2 seconds per IP; runs are paced to stay under it."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"inst_id","label":"Inst ID","description":"OKX instrument id that was liquidated.","group":"Technical","shown":false,"written":false},{"name":"pos_side","label":"Pos side","description":"Position side: long, short or net.","group":"Basics","shown":true,"written":false},{"name":"side","label":"Side","description":"Order side that closed the position: buy or sell.","group":"Basics","shown":true,"written":false},{"name":"size","label":"Size","description":"Liquidated size in contracts.","group":"Basics","shown":true,"written":false},{"name":"bankruptcy_price","label":"Bankruptcy price","description":"Bankruptcy price of the position.","group":"Pay","shown":true,"written":false},{"name":"bankruptcy_loss","label":"Bankruptcy loss","description":"Loss beyond the bankruptcy price, 0 if none.","group":"Basics","shown":true,"written":false},{"name":"liquidated_at","label":"Liquidated","description":"Time of the liquidation (UTC).","group":"Dates","shown":true,"written":false}],"inputs":[{"name":"underlying","label":"Underlying","help":"Underlying such as BTC-USDT.","example":"BTC-USDT","written":false},{"name":"inst_type","label":"Inst type","help":"Instrument type: SWAP or FUTURES.","example":"SWAP","written":false},{"name":"side","label":"Side","help":"Keep only buy or sell liquidations. Leave empty for both.","example":"buy","written":false}]}},"incidents":[]}