Mark against oracle premium
get_premiumA Hyperliquid perp's mark price against its oracle price over time, with the premium in basis points ((mark / oracle - 1) x 10,000) per bucket and a summary (latest, mean, min, max). On HIP-3 stock, index and commodity perps such as xyz:NVDA-PERP, xyz:GOLD-PERP or xyz:SP500-PERP the oracle follows the underlying, so this shows how far the perp trades from what it tracks, weekends included. Default 1h buckets over the last 7 days. For funding payments use get_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": {
"market": "<market>"
},
"name": "get_premium"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back (default 7; limited by your key's history window) | |
| market | Yes | Market: BTC-PERP, xyz:NVDA-PERP, HYPE/USDC, or a Hyperliquid name (BTC, @107, xyz:NVDA) | |
| interval | No | Bucket size (default 1h) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Buckets, oldest first | |
| market | No | Display symbol, e.g. "BTC-PERP" or "xyz:NVDA-PERP" | |
| notice | No | Present when the API added a note: how a market name was read, that data starts later than asked because of the history window, or a next step such as a free key | |
| summary | No | Premium over the window, in basis points | |
| interval | No | Bucket size |