Open interest
get_open_interestWhat is open interest on a Hyperliquid perp? The latest open interest of one perp in units of the base asset (BTC for BTC-PERP), with its 24-hour traded volume in USD and the time of the reading. Multiply by get_price for open interest in USD. To compare open interest across markets use get_markets_snapshot; for its history use run_query (see describe_data).
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_open_interest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | Market: BTC-PERP, xyz:NVDA-PERP, HYPE/USDC, or a Hyperliquid name (BTC, @107, xyz:NVDA) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Open interest samples | |
| notice | No | A note from the API: how a market name was read, why data starts later than asked, or a next step such as a free key | |
| pagination | No | Cursor pagination |