get_perp_market_history
Get perp funding rate and open interest history. Returns a perpetual future's funding rate and open interest over a configurable lookback window, sampled at a configurable resolution. Both series come from the same venue snapshot row, so a caller reading them together never compares values sampled at different times.
funding_rate is the venue's hourly rate as a decimal fraction, so
0.0000125 is 0.00125% per hour. open_interest is a coin count of the
base asset (35984.2 for BTC), not a USD notional.
See the Time Window & Resolution
section for the format of window and resolution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | Perp symbol to fetch the snapshot series for (e.g. `BTC`). | |
| window | No | Lookback period (e.g. `1h`, `4h`, `1d`, `7d`, `1M`). | |
| asset_id | No | Backend asset ID. Mutually exclusive with `symbol`: exactly one of the two is required, and naming both is a 400. | |
| resolution | No | Bucket size (e.g. `5m`, `1h`, `1d`). Must be at least `1h` for windows over `1d`. |