Funding rate
funding_rateFetches the current OKX public funding rate for a perpetual swap (e.g., BTC-USDT-SWAP) so you can assess carry costs with read-only market data and no credentials.
Instructions
Get the current OKX public funding rate for a perpetual swap. READ-ONLY: this tool only calls OKX public market REST. No API key, no order, no account access. instId must be a SWAP, e.g. BTC-USDT-SWAP.
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": "funding_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instId | Yes | Perpetual swap instrument ID, e.g. BTC-USDT-SWAP. |