Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.)
Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.) with the Hyperliquid API. Supply a type. Sample fields include names. Build a market research view or track changes over time. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.)
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
response(object | object[])[]collateralTokenintegermarginTables((integer | object)[])[]descriptionstringmarginTiersobject[]lowerBoundstringmaxLeverageinteger
universeobject[]marginTableIdintegermaxLeverageintegernamestringszDecimalsinteger
dayBaseVlmstringdayNtlVlmstringfundingstringimpactPxsstring[]markPxstringmidPxstringopenIntereststringoraclePxstringpremiumstringprevDayPxstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = Array<{
collateralToken?: number;
marginTables?: Array<Array<number | {
description?: string;
marginTiers?: Array<{
lowerBound?: string;
maxLeverage?: number;
}>;
}>>;
universe?: Array<{
marginTableId?: number;
maxLeverage?: number;
name?: string;
szDecimals?: number;
}>;
} | Array<{
dayBaseVlm?: string;
dayNtlVlm?: string;
funding?: string;
impactPxs?: Array<string>;
markPx?: string;
midPx?: string;
openInterest?: string;
oraclePx?: string;
premium?: string;
prevDayPx?: string;
}>>;Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
hyperliquidCurrent Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.) · POST · View API reference | $0 / call | — | —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: 3. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/hyperliquid/info/meta-and-asset-ctxs- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
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"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
dex | JSON request bodybody | string | No | Perp dex name. Defaults to the empty string which represents the first perp dex. |
type | JSON request bodybody | string | Yes | Fixed native Info query discriminator. const: "metaAndAssetCtxs" · enum: "metaAndAssetCtxs" |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
[
{
"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"
}
]
]Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.)
Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.) with the Hyperliquid API. Supply a type. Sample fields include names. Build a market research view or track changes over time. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
hyperliquid · Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.): https://openany.si/markets/apis/capabilities/hyperliquid-retrieve-perpetuals-asset-contexts-includes-mark-price-current-funding-open-interest?offering=89a08217-eb90-47e9-9c02-e2fe85bf8c25 · $0 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/hyperliquid-retrieve-perpetuals-asset-contexts-includes-mark-price-current-funding-open-interest
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/meta-and-asset-ctxs
Price: $0 / call
Provider: hyperliquid
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```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"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.)",
"endpoint": "https://api.openany.si/v1/agent-apis/hyperliquid/info/meta-and-asset-ctxs",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.) Documentation prepared only; runtime not verified.",
"json_schema": {
"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"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example (source abbreviated)",
"request": {
"body": {
"type": "metaAndAssetCtxs"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": [
{
"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
| 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 perpetuals asset contexts (includes mark price, current funding, open interest, etc.) Documentation prepared only; runtime not verified.
Terminal · cURLcurl \ '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" }'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 } ] }, [ { "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" } ] ]