Get funding rate history
hl_get_funding_historyRetrieve historical hourly funding rates for a specified perpetual coin. Analyze carry and funding trends with cumulative and annualized metrics over a customizable time window.
Instructions
Historical hourly funding rates for a coin over a time window, with cumulative and average annualized funding. Use for carry analysis and funding trend. Defaults to the last 7 days if no window is given.
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": {
"coin": "<coin>"
},
"name": "hl_get_funding_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Perp coin symbol, e.g. 'BTC'. | |
| limit | No | ||
| offset | No | ||
| endTime | No | End time ms epoch (default now). | |
| startTime | No | Start time ms epoch (default: 7 days ago). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | ||
| count | Yes | ||
| avgApr | Yes | ||
| entries | Yes | ||
| avgHourly | Yes | ||
| cumulative | Yes | ||
| nextOffset | Yes |