Hyperliquid All Perps Metadata API
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.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Hyperliquid All Perps Metadata API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
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.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | JSON body: type |
| Selected implementation | hyperliquid · Hyperliquid — Retrieve all perpetuals metadata (universe and margin tables) |
| Billing | Per call; see the pricing area for the selected implementation |
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 |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the JSON body and supported fields shown in the request template.
- Check the HTTP response and business result before reading optional fields.
curl --request POST \
"https://api.openany.si/v1/agent-apis/hyperliquid/info/all-perp-metas" \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H "Content-Type: application/json" \
--data-raw '{"type":"allPerpMetas"}'
Request and Response Examples
The saved response is a published documentation example with abbreviated source content. Its values may be historical; the request is an independent calling template. Use current returned identifiers and optional fields for your chosen resource.
Published Hyperliquid All Perps Metadata API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
hyperliquidCurrent Hyperliquid — Retrieve all perpetuals metadata (universe and margin tables) · POST · View API reference | $0 / call | 0 | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/hyperliquid/info/all-perp-metas- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
type | JSON request bodybody | string | Yes | Fixed native Info query discriminator. const: "allPerpMetas" · enum: "allPerpMetas" |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
responseobject[]collateralTokenintegermarginTables((integer | object)[])[]descriptionstringmarginTiersobject[]lowerBoundstringmaxLeverageinteger
universeobject[]marginTableIdintegermaxLeverageintegernamestringszDecimalsintegerdeployerFeeScalestringgrowthModestringlastFeeScaleChangeTimestringisDelistedbooleanmarginModestringonlyIsolatedboolean
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example (source abbreviated)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Retrieve all perpetuals metadata (universe and margin tables) Documentation prepared only; runtime not verified.
Terminal · cURLcurl \ '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" }'Check the response
Sample response · Documented HTTP 200
Sample response[ { "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 } ] } ]