# DefiLlama — List all open interest dex exchanges along with summaries of their open interest

Get DefiLlama Open Interest DEX data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as excludeTotalDataChart, and retrieve structured data including all chains, protocols, derivatives protocol name, display name, and chains to compare reported open interest, review percentage changes, and combine distinct market metrics.

Documentation: https://openany.si/defillama/defillama-list-all-open-interest-dex-exchanges-along-with-summaries-of-their-open-interest/2478babb-2d86-4d69-a8a5-9f14f1386889/
API ID: 2478babb-2d86-4d69-a8a5-9f14f1386889
Provider: defillama
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/defillama/overview/open-interest
Page update time: 2026-12-03T02:39:15.564Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:39:14.065Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## DefiLlama Open Interest DEX API

Call this endpoint with the required `excludeTotalDataChart` and `excludeTotalDataChartBreakdown` booleans to retrieve `allChains`, per-exchange open interest metrics under `protocols[]` and optional `totalDataChart` history.

## What You Can Build

- **Compare reported open interest**: Keep source period fields and venue context with each observation.
- **Review percentage changes**: Compare source changes without labeling them as confirmed liquidations or leverage changes.
- **Combine distinct market metrics**: Pair open interest with separately retrieved trading volumes while retaining their different meanings.

## Returned Data

| Field | Meaning |
| --- | --- |
| `allChains` | Array of blockchains with tracked open interest venues |
| `protocols` | Array of derivatives DEX open interest summaries |
| `protocols[].name` | Derivatives protocol name |
| `protocols[].displayName` | Protocol display name such as Hyperliquid Perps |
| `protocols[].chains` | Chains where the protocol’s open interest is tracked |
| `protocols[].total24h` | Reported 24-hour open interest figure in USD |
| `protocols[].total7d` | Reported 7-day open interest figure in USD |
| `protocols[].change_1d` | 1-day percentage change in open interest |
| `protocols[].change_7d` | 7-day percentage change in open interest |
| `totalDataChart` | Historical aggregated open interest chart series |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DefiLlama — List all open interest dex exchanges along with summaries of their open interest request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "excludeTotalDataChart": {
          "type": "boolean",
          "description": "true to exclude aggregated chart from response"
        },
        "excludeTotalDataChartBreakdown": {
          "type": "boolean",
          "description": "true to exclude broken down chart from response"
        }
      },
      "required": [
        "excludeTotalDataChart",
        "excludeTotalDataChartBreakdown"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "allChains": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "protocols": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "chains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "change_1d": {
            "type": "number"
          },
          "change_7d": {
            "type": "number"
          },
          "displayName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "total24h": {
            "type": "integer"
          },
          "total7d": {
            "type": "integer"
          }
        }
      }
    },
    "totalDataChart": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official UI example (not runtime verified)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/defillama/overview/open-interest?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "allChains": [
    "Hyperliquid L1",
    "Off Chain",
    "zkLighter"
  ],
  "protocols": [
    {
      "chains": [
        "Hyperliquid L1"
      ],
      "change_1d": 3.62,
      "change_7d": 12.63,
      "displayName": "Hyperliquid Perps",
      "name": "Hyperliquid Perps",
      "total24h": 14304709847,
      "total7d": 93112774041
    }
  ],
  "totalDataChart": [
    [
      1654819200,
      607785941
    ]
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Are excludeTotalDataChart and excludeTotalDataChartBreakdown required?
Yes. Both boolean query parameters are required in the contract.

### How do I retrieve historical open interest chart points?
Set excludeTotalDataChart=false in the query string.

### Which types of venues appear in protocols?
Decentralized perpetual and derivatives exchanges tracked by DefiLlama (for example, Hyperliquid Perps).

### Can I filter open interest by a single chain in the path?
No chain path parameter is defined on this endpoint; filter protocols[] by their chains array client-side.

### What currency are total24h and total7d reported in?
Open interest figures are reported in USD.

### How do I inspect options volume instead of perpetual open interest?
Use the DefiLlama All Options Volumes API or Options Protocol Volume API.

## Available implementations
- defillama: https://openany.si/defillama/defillama-list-all-open-interest-dex-exchanges-along-with-summaries-of-their-open-interest/2478babb-2d86-4d69-a8a5-9f14f1386889/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
