---
title: "Get Open Interest"
method: GET
path: "/api/v1/hyperliquid/open-interest"
tags: ["Hyperliquid"]
---

# Get Open Interest

`GET /api/v1/hyperliquid/open-interest`

## Request

- Base URL: `https://cryptodataapi.com`
- URL: `https://cryptodataapi.com/api/v1/hyperliquid/open-interest`
- Auth: API key in header `X-API-Key`

Open interest across all Hyperliquid assets.

``as_of`` (ms) is when the ``metaAndAssetCtxs`` snapshot behind every row
was fetched (60s cadence); ``generated_at`` (ms) is when this response was
built. ``open_interest_usd = open_interest x mark_price``; ``premium`` is
HL's own context field. ``coverage`` explains the row count: HL keeps
delisted perps in its universe and they are excluded here.

## Response `200`

Successful Response

- HLOpenInterestResponse: Hyperliquid open interest across all assets.
  - `assets` object[], required
  - `total_oi` number
  - `total_oi_usd` number
  - `as_of` integer, nullable
  - `generated_at` integer, nullable
  - `coverage` object, nullable

---

[API](https://skmtc.dev/cryptodataapi/apis/crypto-data-api.md) · [All operations](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/revisions/8628b754ca81?raw)
