Crypto funding rate (OKX, perps)
crypto_funding_rateRetrieve current funding rate and next funding time for a perpetual swap. Optionally fetch recent historical funding rates with a specified limit.
Instructions
Current funding rate + next funding time for a perpetual swap. Set history: true for recent historical funding rates.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instId": "<instId>"
},
"name": "crypto_funding_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Only with history | |
| instId | Yes | Perpetual swap id, e.g. BTC-USDT-SWAP | |
| history | No |