# Hyperliquid — Retrieve all perpetuals metadata (universe and margin tables)

Get Hyperliquid All Perps Metadata via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as type, and retrieve structured data including collateral token, perpetual coin identifier, size precision, reported instrument leverage limit, and associated margin-table identifier for asset catalogs, and margin references, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/hyperliquid/hyperliquid-retrieve-all-perpetuals-metadata-universe-and-margin-tables/0cf09737-5d04-4598-a27a-0da08565f1a2/
API ID: 0cf09737-5d04-4598-a27a-0da08565f1a2
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/all-perp-metas
Page update time: 2026-12-03T02:49:35.938Z
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: application/json
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:49:35.258Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid All Perps Metadata API

POST type="allPerpMetas". The response is an array of metadata objects, each containing universe, marginTables and collateralToken. Retain each group and use universe\[\].marginTableId to associate an instrument with its margin table within that group.

## What You Can Build

- **Asset catalogs**: Collect instruments while preserving metadata groups.
- **Margin references**: Associate each instrument with its own group’s tables.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[].collateralToken` | Collateral token index for the metadata group |
| `[].universe[].name` | Perpetual coin identifier |
| `[].universe[].szDecimals` | Size precision |
| `[].universe[].maxLeverage` | Reported instrument leverage limit |
| `[].universe[].marginTableId` | Associated margin-table identifier |
| `[].marginTables` | Margin-table identifier and configuration pairs |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Retrieve all perpetuals metadata (universe and margin tables) 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": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "type": "allPerpMetas"
        }
      ],
      "properties": {
        "type": {
          "const": "allPerpMetas",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "allPerpMetas"
          ],
          "example": "allPerpMetas",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object",
      "description": "Retrieve all perpetuals metadata (universe and margin tables) Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "collateralToken": {
        "type": "integer"
      },
      "marginTables": {
        "type": "array",
        "items": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "marginTiers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lowerBound": {
                          "type": "string"
                        },
                        "maxLeverage": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            ]
          }
        }
      },
      "universe": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "marginTableId": {
              "type": "integer"
            },
            "maxLeverage": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "szDecimals": {
              "type": "integer"
            },
            "deployerFeeScale": {
              "type": "string"
            },
            "growthMode": {
              "type": "string"
            },
            "lastFeeScaleChangeTime": {
              "type": "string"
            },
            "isDelisted": {
              "type": "boolean"
            },
            "marginMode": {
              "type": "string"
            },
            "onlyIsolated": {
              "type": "boolean"
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/hyperliquid/info/all-perp-metas' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "type": "allPerpMetas"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  {
    "collateralToken": 0,
    "marginTables": [
      [
        50,
        {
          "description": "",
          "marginTiers": [
            {
              "lowerBound": "0.0",
              "maxLeverage": 50
            }
          ]
        }
      ],
      [
        51,
        {
          "description": "tiered 10x",
          "marginTiers": [
            {
              "lowerBound": "0.0",
              "maxLeverage": 10
            },
            {
              "lowerBound": "3000000.0",
              "maxLeverage": 5
            }
          ]
        }
      ],
      [
        52,
        {
          "description": "tiered 10x (2)",
          "marginTiers": [
            {
              "lowerBound": "0.0",
              "maxLeverage": 10
            },
            {
              "lowerBound": "20000000.0",
              "maxLeverage": 5
            }
          ]
        }
      ]
    ],
    "universe": [
      {
        "marginTableId": 56,
        "maxLeverage": 40,
        "name": "BTC",
        "szDecimals": 5
      },
      {
        "marginTableId": 55,
        "maxLeverage": 25,
        "name": "ETH",
        "szDecimals": 4
      },
      {
        "marginTableId": 5,
        "maxLeverage": 5,
        "name": "ATOM",
        "szDecimals": 2
      }
    ]
  },
  {
    "collateralToken": 0,
    "marginTables": [
      [
        50,
        {
          "description": "",
          "marginTiers": [
            {
              "lowerBound": "0.0",
              "maxLeverage": 50
            }
          ]
        }
      ]
    ],
    "universe": [
      {
        "deployerFeeScale": "1.0",
        "growthMode": "enabled",
        "lastFeeScaleChangeTime": "2025-11-23T17:37:10.033211662",
        "marginTableId": 30,
        "maxLeverage": 30,
        "name": "xyz:XYZ100",
        "szDecimals": 4
      },
      {
        "deployerFeeScale": "1.0",
        "growthMode": "enabled",
        "lastFeeScaleChangeTime": "2025-11-23T17:37:10.033211662",
        "marginTableId": 20,
        "maxLeverage": 20,
        "name": "xyz:TSLA",
        "szDecimals": 3
      },
      {
        "deployerFeeScale": "1.0",
        "growthMode": "enabled",
        "lastFeeScaleChangeTime": "2025-11-23T17:37:10.033211662",
        "marginTableId": 20,
        "maxLeverage": 20,
        "name": "xyz:NVDA",
        "szDecimals": 3
      }
    ]
  },
  {
    "collateralToken": 360,
    "marginTables": [
      [
        50,
        {
          "description": "",
          "marginTiers": [
            {
              "lowerBound": "0.0",
              "maxLeverage": 50
            }
          ]
        }
      ],
      [
        51,
        {
          "description": "5x leverage for small positions, 3x for large positions (>$1M)",
          "marginTiers": [
            {
              "lowerBound": "0.0",
              "maxLeverage": 5
            },
            {
              "lowerBound": "1000000.0",
              "maxLeverage": 3
            }
          ]
        }
      ],
      [
        52,
        {
          "description": "3x leverage for small positions, 2x for large positions (>$1M)",
          "marginTiers": [
            {
              "lowerBound": "0.0",
              "maxLeverage": 3
            },
            {
              "lowerBound": "1000000.0",
              "maxLeverage": 2
            }
          ]
        }
      ]
    ],
    "universe": [
      {
        "deployerFeeScale": "1.0",
        "growthMode": "enabled",
        "isDelisted": true,
        "lastFeeScaleChangeTime": "2025-11-24T21:19:25.980742012",
        "marginTableId": 10,
        "maxLeverage": 10,
        "name": "flx:TSLA",
        "szDecimals": 2
      },
      {
        "deployerFeeScale": "1.0",
        "growthMode": "enabled",
        "isDelisted": true,
        "lastFeeScaleChangeTime": "2026-03-08T03:42:24.011287219",
        "marginTableId": 10,
        "maxLeverage": 10,
        "name": "flx:NVDA",
        "szDecimals": 2
      },
      {
        "deployerFeeScale": "1.0",
        "growthMode": "enabled",
        "isDelisted": true,
        "lastFeeScaleChangeTime": "2025-11-24T21:19:25.980742012",
        "marginMode": "strictIsolated",
        "marginTableId": 5,
        "maxLeverage": 5,
        "name": "flx:CRCL",
        "onlyIsolated": true,
        "szDecimals": 2
      }
    ]
  }
]
```

## 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
### Is this one flat metadata object?
No. Preserve the outer metadata-group array and each group’s own universe and margin tables.

### Can I pass a DEX selector here?
This implementation accepts type only. The separate meta query supports an optional dex.

### Is maxLeverage a recommendation for my account?
It is an instrument configuration value. Account settings and margin requirements need their own context.

### Should I join margin tables across every group by ID alone?
Keep group identity with marginTableId and the table pairs. Do not discard the group boundary during the join.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- hyperliquid: https://openany.si/hyperliquid/hyperliquid-retrieve-all-perpetuals-metadata-universe-and-margin-tables/0cf09737-5d04-4598-a27a-0da08565f1a2/

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