{"api":{"id":"api_122287e792439585ce59750e","slug":"okx-long-short-ratio","name":"OKX Long Short Account Ratio API","description":"Time series of the ratio of accounts holding long versus short positions on OKX contracts, for one or several coins at 5-minute, hourly or daily buckets, with ISO timestamps. A sentiment indicator.","kind":"ready_made","visibility":"public","domain":"okx.com","source_url":"https://www.okx.com/api/v5/rubik/stat/contracts/long-short-account-ratio","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":3,"created_at":"2026-12-06T04:45:48.384Z","updated_at":"2026-12-06T04:45:48.384Z","runnable":true},"version":"1.0","contract_hash":"afb4b900ee967d42af99fcc5e9fe1e34e4d675a50ef1a345fbd43c2a0eec2a2b","fields":[{"name":"currency","type":"string","description":"Coin symbol.","required":true,"coverage":1,"example":"BTC"},{"name":"bucket_at","type":"datetime","description":"Start of the bucket (UTC).","required":true,"coverage":1,"example":"2026-12-06T04:00:00.000Z"},{"name":"long_short_ratio","type":"number","description":"Accounts long divided by accounts short.","required":false,"coverage":1,"example":2.39}],"inputs":[{"name":"currencies","type":"array","description":"Coin symbols such as BTC and ETH.","example":["BTC","ETH"],"required":true},{"name":"period","type":"string","description":"Bucket size: 5m, 1H or 1D.","default":"1H","example":"1H","enum":["5m","1H","1D"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"bucket_at":{"description":"Start of the bucket (UTC).","format":"date-time","type":"string"},"currency":{"description":"Coin symbol.","type":"string"},"long_short_ratio":{"description":"Accounts long divided by accounts short.","type":"number"}},"required":["currency","bucket_at"],"title":"OKX Long Short Account Ratio API","type":"object"},"samples":[{"currency":"BTC","bucket_at":"2026-12-06T04:00:00.000Z","long_short_ratio":2.39},{"currency":"BTC","bucket_at":"2026-12-06T03:00:00.000Z","long_short_ratio":2.42},{"currency":"BTC","bucket_at":"2026-12-06T02:00:00.000Z","long_short_ratio":2.51}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"bucket_at":1,"currency":1,"long_short_ratio":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":"afb4b900ee967d42af99fcc5e9fe1e34e4d675a50ef1a345fbd43c2a0eec2a2b","fields_count":3}]}