{"api":{"id":"api_7efccbf231d180bfd1e4c94f","slug":"okx-funding-rate-history","name":"OKX Funding Rate History API","description":"Past perpetual swap funding rates from OKX for one or many instruments, with the rate set, the rate actually paid and the settlement time. Built for carry-trade desks and crypto researchers.","kind":"ready_made","visibility":"public","domain":"okx.com","source_url":"https://www.okx.com/api/v5/public/funding-rate-history","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":"0075a94db8a56cb565d41e1905b6ebf1375a710e040834165ab06fc8a340e70a","fields":[{"name":"inst_id","type":"string","description":"OKX instrument id.","required":true,"coverage":1,"example":"BTC-USDT-SWAP"},{"name":"funding_rate","type":"number","description":"Funding rate set for the period (fraction).","required":false,"coverage":1,"example":0.0000149201324141},{"name":"realized_rate","type":"number","description":"Funding rate actually settled (fraction).","required":false,"coverage":1,"example":0.0000149201324141},{"name":"funding_at","type":"datetime","description":"Settlement time (UTC).","required":true,"coverage":1,"example":"2026-12-06T00:00:00.000Z"},{"name":"method","type":"string","description":"How the rate is calculated, such as current_period.","required":false,"coverage":1,"example":"current_period"}],"inputs":[{"name":"inst_ids","type":"array","description":"Swap instrument ids, for example BTC-USDT-SWAP.","example":["BTC-USDT-SWAP","ETH-USDT-SWAP"],"required":true},{"name":"limit","type":"integer","description":"Most rows per instrument (the newest first). Leave empty to use the run's record limit.","example":50}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"funding_at":{"description":"Settlement time (UTC).","format":"date-time","type":"string"},"funding_rate":{"description":"Funding rate set for the period (fraction).","type":"number"},"inst_id":{"description":"OKX instrument id.","type":"string"},"method":{"description":"How the rate is calculated, such as current_period.","type":"string"},"realized_rate":{"description":"Funding rate actually settled (fraction).","type":"number"}},"required":["inst_id","funding_at"],"title":"OKX Funding Rate History API","type":"object"},"samples":[{"inst_id":"BTC-USDT-SWAP","funding_rate":0.0000149201324141,"realized_rate":0.0000149201324141,"funding_at":"2026-12-06T00:00:00.000Z","method":"current_period"},{"inst_id":"BTC-USDT-SWAP","funding_rate":0.0000291336015472,"realized_rate":0.0000291336015472,"funding_at":"2026-12-05T16:00:00.000Z","method":"current_period"},{"inst_id":"BTC-USDT-SWAP","funding_rate":-0.0000256181124781,"realized_rate":-0.0000256181124781,"funding_at":"2026-12-05T08:00:00.000Z","method":"current_period"}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"funding_at":1,"funding_rate":1,"inst_id":1,"method":1,"realized_rate":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":"0075a94db8a56cb565d41e1905b6ebf1375a710e040834165ab06fc8a340e70a","fields_count":5}]}