{"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,"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":"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},"links":{"run":"https://pullrow.dev/v1/apis/api_7efccbf231d180bfd1e4c94f/run","openapi":"https://pullrow.dev/v1/apis/api_7efccbf231d180bfd1e4c94f/openapi.json","contract":"https://pullrow.dev/v1/apis/api_7efccbf231d180bfd1e4c94f/contract.json","page":"https://pullrow.dev/catalog/okx-funding-rate-history"},"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 publishes this data for free, limited to 20 requests per 2 seconds per IP; runs are paced to stay under it.","OKX serves only a limited recent window of funding history per instrument (roughly the last three months), so older periods are not available.","Rates are fractions per funding period (0.0001 = 0.01 percent), not annualised.","Only perpetual swap instrument ids such as BTC-USDT-SWAP work."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"inst_id","label":"Inst ID","description":"OKX instrument id.","group":"Technical","shown":false,"written":false},{"name":"funding_rate","label":"Funding rate","description":"Funding rate set for the period (fraction).","group":"Basics","shown":true,"written":false},{"name":"realized_rate","label":"Realized rate","description":"Funding rate actually settled (fraction).","group":"Basics","shown":true,"written":false},{"name":"funding_at","label":"Funding at","description":"Settlement time (UTC).","group":"Dates","shown":true,"written":false},{"name":"method","label":"Method","description":"How the rate is calculated, such as current_period.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"inst_ids","label":"Inst IDs","help":"Swap instrument ids, for example BTC-USDT-SWAP.","example":"BTC-USDT-SWAP, ETH-USDT-SWAP","written":false},{"name":"limit","label":"Limit","help":"Most rows per instrument (the newest first). Leave empty to use the run's record limit.","example":"50","written":false}]}},"incidents":[]}