> ## 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.

# metaAndAssetCtxs | Hyperliquid Info API

> Hyperliquid metaAndAssetCtxs: fetch the full Hyperliquid perpetuals market universe with live per-asset trading context.

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

The Hyperliquid info endpoint with `type: "metaAndAssetCtxs"` is used to fetch the full Hyperliquid perpetuals market universe with live per-asset trading context.

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

<Info>
  * Wire-equal to `POST api.hyperliquid.xyz/info` with `{"type": "metaAndAssetCtxs"}`.
  * For real-time mark-price updates, use the <a href="https://goldrush.dev/docs/api-reference/streaming-api/subscriptions/ohlcv-pairs-stream" target="_blank" rel="noopener noreferrer">Streaming API OHLCV streams</a> instead of polling.
</Info>

Returns a tuple `[meta, assetCtxs[]]` covering the entire Hyperliquid perpetuals universe - every coin’s metadata plus a live snapshot of mark price, funding rate, open interest, and 24-hour volume.

This is a global, non-user-keyed type. A single cache entry is shared across all callers and is refreshed continuously from upstream Hyperliquid.

## Endpoint

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

## Request

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

<ParamField body="dex" type="string">
  HIP-3 builder DEX identifier. Empty string (default) returns the canonical Hyperliquid perp universe. Pass a builder code (e.g. `"xyz"`) to query a HIP-3 deployer's universe.
</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": "metaAndAssetCtxs",
      "dex": ""
    }'
  ```

  ```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: "metaAndAssetCtxs",
      dex: "",
    }),
  });

  const [meta, assetCtxs] = 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": "metaAndAssetCtxs", "dex": ""},
  )

  meta, asset_ctxs = response.json()
  ```
</CodeGroup>

## Response

A two-element JSON array. Element 0 is the universe metadata; element 1 is an array of per-asset contexts indexed identically to the `universe` array.

```json theme={null}
[
  {
    "universe": [
      { "name": "BTC", "szDecimals": 5, "maxLeverage": 50 },
      { "name": "ETH", "szDecimals": 4, "maxLeverage": 50 },
      { "name": "SOL", "szDecimals": 2, "maxLeverage": 20 }
    ]
  },
  [
    {
      "funding": "0.0000125",
      "openInterest": "12345.67",
      "prevDayPx": "67500.0",
      "dayNtlVlm": "894500000.0",
      "premium": "0.00001",
      "oraclePx": "68210.5",
      "markPx": "68215.0",
      "midPx": "68214.0",
      "impactPxs": ["68210.0", "68220.0"],
      "dayBaseVlm": "13130.45"
    },
    { "funding": "0.0000050", "openInterest": "9876.54", "...": "..." },
    { "funding": "0.0000200", "openInterest": "543210.98", "...": "..." }
  ]
]
```

### Element 0: `meta`

<ResponseField name="universe" type="array<object>">
  Array of perp asset metadata, indexed identically to element 1's `assetCtxs`.

  <Expandable title="properties">
    <ResponseField name="name" type="string">Asset symbol - e.g. `"BTC"`, `"ETH"`. For HIP-3 markets, includes the deployer prefix.</ResponseField>
    <ResponseField name="szDecimals" type="int">Number of decimals for size precision.</ResponseField>
    <ResponseField name="maxLeverage" type="int">Maximum leverage for this asset.</ResponseField>
    <ResponseField name="onlyIsolated" type="boolean">If true, the asset only supports isolated margin.</ResponseField>
  </Expandable>
</ResponseField>

### Element 1: `assetCtxs[]`

Array of per-asset live context, indexed identically to `universe`.

<ResponseField name="funding" type="string">Current funding rate (decimal string).</ResponseField>
<ResponseField name="openInterest" type="string">Open interest in base units.</ResponseField>
<ResponseField name="prevDayPx" type="string">Mark price 24 hours ago.</ResponseField>
<ResponseField name="dayNtlVlm" type="string">24-hour notional volume in USD.</ResponseField>
<ResponseField name="premium" type="string">Mark vs oracle premium.</ResponseField>
<ResponseField name="oraclePx" type="string">Current oracle price.</ResponseField>
<ResponseField name="markPx" type="string">Current mark price.</ResponseField>
<ResponseField name="midPx" type="string">Current orderbook mid price.</ResponseField>
<ResponseField name="impactPxs" type="array<string>">Bid/ask impact prices `[bidImpact, askImpact]`.</ResponseField>
<ResponseField name="dayBaseVlm" type="string">24-hour volume in base units.</ResponseField>

## Related endpoints

<CardGroup cols={2}>
  <Card title="spotMetaAndAssetCtxs" href="/api-reference/hyperliquid-info/spot-meta-and-asset-ctxs">fetch the spot universe metadata, token configuration, and live market data in a single call.</Card>
  <Card title="meta" href="/api-reference/hyperliquid-info/meta">fetch the perpetuals universe metadata without live market context.</Card>
  <Card title="outcomeMeta" href="/api-reference/hyperliquid-info/outcome-meta">enumerate all active HIP-4 binary outcome markets on HyperCore.</Card>
  <Card title="spotMeta" href="/api-reference/hyperliquid-info/spot-meta">fetch the spot universe metadata and full token configuration without live market context.</Card>
</CardGroup>

*Last reviewed: 2026-06-13*
