{"api":{"id":"api_daa70fd0c46187403fbf2918","slug":"okx-open-interest-all-swaps","name":"OKX Open Interest Snapshot API","description":"Current open interest for every OKX swap, futures or option instrument in contracts, coin and US dollars, ranked by dollar open interest, with filters for minimum size and quote currency.","kind":"ready_made","visibility":"public","domain":"okx.com","source_url":"https://www.okx.com/api/v5/public/open-interest","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":5,"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.","required":true,"coverage":1,"example":"BTC-USDT-SWAP"},{"name":"oi_contracts","type":"number","description":"Open interest in contracts.","required":false,"coverage":1,"example":3260108.350000009},{"name":"oi_coin","type":"number","description":"Open interest in the base coin.","required":false,"coverage":1,"example":32601.08350000009},{"name":"oi_usd","type":"number","description":"Open interest in US dollars.","required":false,"coverage":1,"example":1439927916.136354},{"name":"snapshot_at","type":"datetime","description":"When OKX took the snapshot (UTC).","required":false,"coverage":1,"example":"2026-12-06T04:35:39.604Z"}],"inputs":[{"name":"inst_type","type":"string","description":"SWAP, FUTURES or OPTION.","default":"SWAP","example":"SWAP","enum":["SWAP","FUTURES","OPTION"]},{"name":"min_oi_usd","type":"integer","description":"Drop instruments with less open interest than this, in US dollars.","example":1000000},{"name":"quote","type":"string","description":"Only instruments with this quote currency, such as USDT or USD.","example":"USDT"},{"name":"underlying","type":"string","description":"Underlying index, required for OPTION, optional otherwise.","example":"BTC-USD"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"inst_id":{"description":"OKX instrument id.","type":"string"},"oi_coin":{"description":"Open interest in the base coin.","type":"number"},"oi_contracts":{"description":"Open interest in contracts.","type":"number"},"oi_usd":{"description":"Open interest in US dollars.","type":"number"},"snapshot_at":{"description":"When OKX took the snapshot (UTC).","format":"date-time","type":"string"}},"required":["inst_id"],"title":"OKX Open Interest Snapshot API","type":"object"},"samples":[{"inst_id":"BTC-USDT-SWAP","oi_contracts":3260108.350000009,"oi_coin":32601.08350000009,"oi_usd":1439927916.136354,"snapshot_at":"2026-12-06T04:35:39.604Z"},{"inst_id":"ETH-USDT-SWAP","oi_contracts":6722324.840000009,"oi_coin":672232.4840000009,"oi_usd":937730703.5558013,"snapshot_at":"2026-12-06T04:35:39.604Z"},{"inst_id":"BTC-USD-SWAP","oi_contracts":6277106.699999999,"oi_coin":14218.873835406364,"oi_usd":627710670,"snapshot_at":"2026-12-06T04:35:39.604Z"}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"inst_id":1,"oi_coin":1,"oi_contracts":1,"oi_usd":1,"snapshot_at":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_daa70fd0c46187403fbf2918/run","openapi":"https://pullrow.dev/v1/apis/api_daa70fd0c46187403fbf2918/openapi.json","contract":"https://pullrow.dev/v1/apis/api_daa70fd0c46187403fbf2918/contract.json","page":"https://pullrow.dev/catalog/okx-open-interest-all-swaps"},"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 live snapshot only, not a history; rerun to build your own series.","Ranked by dollar open interest; instruments with no dollar value come last.","For OPTION, OKX needs an underlying such as BTC-USD (input underlying); SWAP and FUTURES cover all instruments.","Data comes from OKX's public market data; check OKX's terms before redistributing it."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"inst_id","label":"Inst ID","description":"OKX instrument id.","group":"Technical","shown":false,"written":false},{"name":"oi_contracts","label":"Oi contracts","description":"Open interest in contracts.","group":"Basics","shown":true,"written":false},{"name":"oi_coin","label":"Oi coin","description":"Open interest in the base coin.","group":"Basics","shown":true,"written":false},{"name":"oi_usd","label":"Oi (USD)","description":"Open interest in US dollars.","group":"Basics","shown":true,"written":false},{"name":"snapshot_at","label":"Snapshot at","description":"When OKX took the snapshot (UTC).","group":"Dates","shown":true,"written":false}],"inputs":[{"name":"inst_type","label":"Inst type","help":"SWAP, FUTURES or OPTION.","example":"SWAP","written":false},{"name":"min_oi_usd","label":"Minimum oi (USD)","help":"Drop instruments with less open interest than this, in US dollars.","example":"1000000","written":false},{"name":"quote","label":"Quote","help":"Only instruments with this quote currency, such as USDT or USD.","example":"USDT","written":false},{"name":"underlying","label":"Underlying","help":"Underlying index, required for OPTION, optional otherwise.","example":"BTC-USD","written":false}]}},"incidents":[]}