Sources › Finance › OKX › Funding Rate

OKX Funding Rate API

Current and next funding for one OKX perpetual, with the rate caps.

OKXGET /funding-rateAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:okx/funding-rate

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 30 seconds.

Parameters

NameTypeInRequiredDescription
symbolstringqueryYesPerpetual instrument ID Example: BTC-USDT-SWAP

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:okx/funding-rate?symbol=BTC-USDT-SWAP" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:okx/funding-rate?symbol=BTC-USDT-SWAP", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:okx/funding-rate",
    params={"symbol":"BTC-USDT-SWAP"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:okx",
  "data": {
    "date": "2026-08-20T14:58:05.180Z",
    "time": 1787237885180,
    "method": "current_period",
    "symbol": "BTC-USDT-SWAP",
    "dataset": "funding-rate",
    "premium": -0.0005606459980755,
    "instType": "SWAP",
    "provider": "okx",
    "formulaType": "withRate",
    "fundingDate": "2026-08-20T16:00:00.000Z",
    "fundingRate": 0.0000694968722686,
    "fundingTime": 1787241600000,
    "impactValue": 20000,
    "interestRate": 0.0001,
    "maxFundingRate": 0.00375,
    "minFundingRate": -0.00375,
    "nextFundingDate": "2026-08-21T00:00:00.000Z",
    "nextFundingRate": null,
    "nextFundingTime": 1787270400000,
    "settlementState": "settled",
    "settledFundingRate": 0.0001,
    "previousFundingDate": "2026-08-20T08:00:00.000Z",
    "previousFundingTime": 1787212800000
  },
  "timestamp": "2026-08-20T14:57:49Z"
}

Frequently asked questions

How do I call the OKX Funding Rate API?

Send a GET request to https://api.zapi.ink/v1/finance:okx/funding-rate?symbol=BTC-USDT-SWAP with your Zapi key in the x-api-key header. Parameters — required: symbol. The response is JSON in the { project, data, timestamp } envelope.

What does the OKX Funding Rate API return?

Current and next funding for one OKX perpetual, with the rate caps. The example response has the fields date, time, method, symbol, dataset, premium, instType, provider.

Is the OKX Funding Rate API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the OKX Funding Rate API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "okx" and endpoint "funding-rate".

What other OKX API endpoints are there?

It has 3 endpoints. Besides Funding Rate: Long Short Ratio, Open Interest.