OpenAny
Get API keyAPI Key
APICrypto & DeFi

hyperliquid logo
Hyperliquid Perps Asset Contexts API

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.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
2Selected implementation · last 30 days
Success rate · 30d
100.00%Selected implementation · last 30 days
USE THIS API

Hyperliquid Perps Asset Contexts API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Hyperliquid Perps Asset Contexts API

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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs JSON body: dex, type
Selected implementation hyperliquid · Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.)
Billing Per call; see the pricing area for the selected implementation

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the JSON body and supported fields shown in the request template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request POST \
  "https://api.openany.si/v1/agent-apis/hyperliquid/info/meta-and-asset-ctxs" \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H "Content-Type: application/json" \
  --data-raw '{"type":"metaAndAssetCtxs"}'

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 Perps Asset Contexts 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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body* object
Fixed value
Fixed native Info query discriminator.
Perp dex name. Defaults to the empty string which represents the first perp dex.
Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.) Documentation prepared only; runtime not verified.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
Hyperliquid — Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.) · POST · View API reference$0 / call2
100.00%successP50203ms
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · hyperliquidUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
typeJSON request bodybodystringYes

Fixed native Info query discriminator.

const: "metaAndAssetCtxs" · enum: "metaAndAssetCtxs"

dexJSON request bodybodystringNo

Perp dex name. Defaults to the empty string which represents the first perp dex.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
response(object | object[])[]
  • collateralTokeninteger
  • marginTables((integer | object)[])[]
    • descriptionstring
    • marginTiersobject[]
      • lowerBoundstring
      • maxLeverageinteger
  • universeobject[]
    • marginTableIdinteger
    • maxLeverageinteger
    • namestring
    • szDecimalsinteger
  • dayBaseVlmstring
  • dayNtlVlmstring
  • fundingstring
  • impactPxsstring[]
  • markPxstring
  • midPxstring
  • openIntereststring
  • oraclePxstring
  • premiumstring
  • prevDayPxstring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    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"
    }'
  3. 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"
        }
      ]
    ]

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.

Use Hyperliquid Perps Asset Contexts API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.