# Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.)

Get Hyperliquid Perps Asset Contexts data 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 perpetual coin identifier, collateral token index, reported mark price, reported mid price, and reported current funding rate for market dashboards, and price references.

Documentation: https://openany.si/hyperliquid/hyperliquid-retrieve-perpetuals-asset-contexts-includes-mark-price-current-funding-open-interest/89a08217-eb90-47e9-9c02-e2fe85bf8c25/
API ID: 89a08217-eb90-47e9-9c02-e2fe85bf8c25
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/meta-and-asset-ctxs
Page update time: 2026-12-03T02:49:36.014Z
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.466Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid Perps Asset Contexts API

Use type="metaAndAssetCtxs" and optional dex. The root response pairs metadata with an asset-context array. Preserve that structure and associate context entries with the corresponding universe entries, keeping the selected DEX and decimal-string values.

## What You Can Build

- **Market dashboards**: Combine instrument identity with the matching context.
- **Price references**: Display distinct mark, mid and oracle fields explicitly.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[0].universe[].name` | Perpetual coin identifier |
| `[0].collateralToken` | Collateral token index |
| `[1][].markPx` | Reported mark price |
| `[1][].midPx` | Reported mid price |
| `[1][].funding` | Reported current funding rate |
| `[1][].openInterest` | Reported open interest |
| `[1][].dayNtlVlm` | Reported daily notional volume |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.) 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": "metaAndAssetCtxs"
        }
      ],
      "properties": {
        "dex": {
          "description": "Perp dex name. Defaults to the empty string which represents the first perp dex.",
          "type": "string"
        },
        "type": {
          "const": "metaAndAssetCtxs",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "metaAndAssetCtxs"
          ],
          "example": "metaAndAssetCtxs",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object",
      "description": "Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.) 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": {
    "anyOf": [
      {
        "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"
                }
              }
            }
          }
        }
      },
      {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "dayBaseVlm": {
              "type": "string"
            },
            "dayNtlVlm": {
              "type": "string"
            },
            "funding": {
              "type": "string"
            },
            "impactPxs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "markPx": {
              "type": "string"
            },
            "midPx": {
              "type": "string"
            },
            "openInterest": {
              "type": "string"
            },
            "oraclePx": {
              "type": "string"
            },
            "premium": {
              "type": "string"
            },
            "prevDayPx": {
              "type": "string"
            }
          }
        }
      }
    ]
  }
}
```

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

## 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
      }
    ]
  },
  [
    {
      "dayBaseVlm": "30978.36148",
      "dayNtlVlm": "2503911439.330019474",
      "funding": "0.0000125",
      "impactPxs": [
        "79913.0",
        "79914.0"
      ],
      "markPx": "79913.0",
      "midPx": "79913.5",
      "openInterest": "43147.11736",
      "oraclePx": "79934.1",
      "premium": "-0.0002514571",
      "prevDayPx": "80908.0"
    },
    {
      "dayBaseVlm": "393735.0542000004",
      "dayNtlVlm": "922887178.5566107035",
      "funding": "0.0000026888",
      "impactPxs": [
        "2309.9",
        "2310.0"
      ],
      "markPx": "2310.0",
      "midPx": "2309.95",
      "openInterest": "1096042.5629999996",
      "oraclePx": "2311.1",
      "premium": "-0.0004759638",
      "prevDayPx": "2353.9"
    },
    {
      "dayBaseVlm": "861194.8",
      "dayNtlVlm": "1401040.7815110001",
      "funding": "-0.0000163825",
      "impactPxs": [
        "1.5928",
        "1.5955"
      ],
      "markPx": "1.5946",
      "midPx": "1.5948",
      "openInterest": "2185508.7200000002",
      "oraclePx": "1.5965",
      "premium": "-0.0006263702",
      "prevDayPx": "1.6268"
    }
  ]
]
```

## 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 a flat array of market objects?
No. Retain the metadata object and context array, then associate contexts with the corresponding universe entries.

### What happens if dex is omitted?
The first perpetual DEX is used. Retain that scope when combining results with other market data.

### Does funding describe my account’s payment?
No. It is market funding-rate context. Account-specific funding history is a separate query.

### Are markPx, midPx and oraclePx the same field?
No. They have distinct price-reference roles. Keep their names and decimal values separate.

### 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-perpetuals-asset-contexts-includes-mark-price-current-funding-open-interest/89a08217-eb90-47e9-9c02-e2fe85bf8c25/

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