> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# allPerpMetas | Hyperliquid Info API

> Hyperliquid allPerpMetas: perpetuals universe and margin tables for every perp DEX in one request.

<CardGroup cols={2}>
  <Card title="Credit Cost"> 1 per call</Card>
  <Card title="Processing"> Realtime</Card>
</CardGroup>

The Hyperliquid info endpoint with `type: "allPerpMetas"` is used to fetch the perpetuals metadata — universe definitions and margin tables — for every perp DEX in a single request.

<Tip>
  Estimate your monthly cost for this API using the [Pricing Calculator](/docs/pricing-calculator?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Fall-perp-metas).
</Tip>

<Info>
  * GoldRush-native — not part of the original Hyperliquid API. It fans <a href="https://goldrush.dev/docs/api-reference/hyperliquid-info/meta" target="_blank" rel="noopener noreferrer">meta</a> out across every perp DEX so you get the whole map in one call.
  * The response is an array: index `0` is the native Hyperliquid perp DEX; each later entry is a HIP-3 builder-deployed perp DEX, in the same order as <a href="https://goldrush.dev/docs/api-reference/hyperliquid-info/perp-dexs" target="_blank" rel="noopener noreferrer">perpDexs</a>.
  * For a single DEX's metadata, use <a href="https://goldrush.dev/docs/api-reference/hyperliquid-info/meta" target="_blank" rel="noopener noreferrer">meta</a> with the `dex` field — this endpoint is the heavier, all-DEX equivalent.
</Info>

Returns the full universe and margin tables across every perp DEX on HyperCore. Each element carries a DEX's `universe` (its perp asset definitions), its `marginTables` (leverage-bracket tiers), and the `collateralToken` index.

## Endpoint

```
POST https://hypercore.goldrushdata.com/info
Authorization: Bearer <GOLDRUSH_API_KEY>
Content-Type: application/json
```

## Request

<ParamField body="type" type="string" required>
  Always `"allPerpMetas"`.
</ParamField>

### Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://hypercore.goldrushdata.com/info \
    -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "type": "allPerpMetas"
    }'
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch("https://hypercore.goldrushdata.com/info", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${process.env.GOLDRUSH_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      type: "allPerpMetas",
    }),
  });

  const allPerpMetas = await response.json();
  ```

  ```python Python theme={null}
  import os, requests

  response = requests.post(
      "https://hypercore.goldrushdata.com/info",
      headers={"Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}"},
      json={"type": "allPerpMetas"},
  )

  all_perp_metas = response.json()
  ```
</CodeGroup>

## Response

An array with one entry per perp DEX. Index `0` is the native Hyperliquid perp DEX; later entries are the HIP-3 builder-deployed perp DEXes in `perpDexs` order.

```json theme={null}
[
  {
    "universe": [
      { "szDecimals": 5, "name": "BTC", "maxLeverage": 40, "marginTableId": 56 },
      { "szDecimals": 4, "name": "ETH", "maxLeverage": 25, "marginTableId": 55 }
    ],
    "marginTables": [
      [50, { "description": "", "marginTiers": [{ "lowerBound": "0.0", "maxLeverage": 50 }] }]
    ],
    "collateralToken": 0
  }
]
```

### Field descriptions

<ResponseField name="[n]" type="object">
  Perpetuals metadata for one perp DEX (index `0` = native Hyperliquid; later = HIP-3 DEXes).

  <Expandable title="properties">
    <ResponseField name="universe" type="array<object>">
      The DEX's perp asset definitions.

      <Expandable title="properties">
        <ResponseField name="name" type="string">Asset name (with the DEX prefix for builder-deployed perps, e.g. `xyz:TSLA`).</ResponseField>
        <ResponseField name="szDecimals" type="int">Number of decimals for the size field.</ResponseField>
        <ResponseField name="maxLeverage" type="int">Maximum leverage for the asset.</ResponseField>
        <ResponseField name="marginTableId" type="int">Margin table id referenced in `marginTables`.</ResponseField>
        <ResponseField name="isDelisted" type="bool">Present and `true` if the asset is delisted.</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="marginTables" type="array<[int, object]>">
      List of `[marginTableId, marginTable]` pairs for this DEX. Each `marginTable` has a `description` and a `marginTiers` array of `{ lowerBound, maxLeverage }` tiers (decimal-string bounds).
    </ResponseField>

    <ResponseField name="collateralToken" type="int">
      Token index used as collateral for this DEX.
    </ResponseField>
  </Expandable>
</ResponseField>

*Last reviewed: 2026-07-30*
