{"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},"version":"1.0","contract_hash":"7341d13fdea44781d579f0232be99c2db2cbdcc2a8d4c5936ab6ee5b85d2fad8","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},"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":"7341d13fdea44781d579f0232be99c2db2cbdcc2a8d4c5936ab6ee5b85d2fad8","fields_count":5}]}