get_funding_rate_history
Retrieve historical funding rate time-series for a perpetual contract on one exchange to analyze funding trends, identify turning points, measure negative funding duration, detect cycles, or feed into quant signals.
Instructions
Get historical funding-rate time-series for a perpetual contract on one exchange.
Use this for trend analysis on funding — "is funding turning positive?",
"how long has BTC funding been negative?", spotting funding cycles, or
feeding a series into a quant signal. For the single most-recent snapshot
use get_funding_rate. For a cross-exchange comparison of the current
rate use compare_funding_rates.
The funding interval varies by venue: Binance and OKX charge funding every 8 hours, Bybit every 1 hour for some perps, BitMEX every 8 hours, etc. Returned timestamps reflect each charge. Don't assume a uniform cadence when comparing series across exchanges.
Args: exchange_id: CCXT exchange ID supporting perps, e.g. "binance", "okx", "bybit", "bitmex", "bitget", "bingx", "gate", "mexc", "kucoinfutures", "hyperliquid". symbol: Perp symbol with settle suffix. Linear (USDT-margined): "BTC/USDT:USDT". Inverse (coin-margined): "BTC/USD:BTC". since_ms: Optional unix-millis lower bound. If null, the exchange returns its default window (typically the most-recent N rows). limit: Max number of rows to return; clamped to [1, 1000].
Returns:
Array of rows oldest-first, each with timestamp (unix millis),
datetime (ISO 8601), symbol, fundingRate (e.g. 0.0001 = 1 bp),
and exchange-specific extras under info. On unsupported exchanges
returns {"error": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange_id | Yes | ||
| symbol | Yes | ||
| since_ms | No | ||
| limit | No |