GET /v2/metrics/open-interest

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/defillama/v2/metrics/open-interestCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Perpetuals open-interest metrics snapshot across protocols and chains.

Parameters

No parameters documented.

Response

type: object
data key: protocols
pagination: none
sample: {
  "category": "str",
  "allCategories": "array[10]",
  "allChains": "array[72]",
  "total24h": "float",
  "total48hto24h": "float",
  "totalLastFullDay": "float",
  "total7d": "float",
  "total14dto7d": "float",
  "total30d": "float",
  "total60dto30d": "int",
  "total1y": "float",
  "total7DaysAgo": "float",
  "total30DaysAgo": "int",
  "totalAllTime": "int",
  "change_1d": "float",
  "change_7

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/defillama/v2/metrics/open-interest"