OpenAny
Get API keyAPI Key
APICrypto & DeFi

hyperliquid logo
Hyperliquid Spot Asset Contexts API

Get Hyperliquid Spot 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 token index, hexadecimal token identifier, spot pair index, context coin identifier, and reported mark price for spot dashboards, and asset references.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Hyperliquid Spot 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 Spot Asset Contexts API

Hyperliquid Spot Asset Contexts API

Use type="spotMetaAndAssetCtxs". The root response pairs spot metadata with a context array. Keep token indices, pair indices and coin identifiers distinct when associating contexts with the metadata universe, and preserve decimal-string market values.

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 spot asset contexts
Billing Per call; see the pricing area for the selected implementation

What You Can Build

  • Spot dashboards: Link market context to the matching coin and metadata.
  • Asset references: Keep token, pair and hexadecimal IDs distinct.

Documented Response Fields

Field Meaning
[0].tokens[].index Token index
[0].tokens[].tokenId Hexadecimal token identifier
[0].universe[].index Spot pair index
[0].universe[].tokens Token indices forming the pair
[1][].coin Context coin identifier
[1][].markPx Reported mark price
[1][].midPx Reported mid price
[1][].dayNtlVlm Reported daily notional volume
[1][].circulatingSupply Reported circulating supply context

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/spot-meta-and-asset-ctxs" \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H "Content-Type: application/json" \
  --data-raw '{"type":"spotMetaAndAssetCtxs"}'

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 Spot 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.
Retrieve spot asset contexts 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 spot asset contexts · POST · View API reference$0 / call0
—successP50—
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/spot-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: "spotMetaAndAssetCtxs" · enum: "spotMetaAndAssetCtxs"

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

Response structure

Inferred from examples
response(object | object[])[]
  • tokensobject[]
    • deployerTradingFeeSharestring
    • evmContractobject
      • addressstring
      • evm_extra_wei_decimalsinteger
    • fullNamenull
    • indexinteger
    • isCanonicalboolean
    • namestring
    • szDecimalsinteger
    • tokenIdstring
    • weiDecimalsinteger
  • universeobject[]
    • indexinteger
    • isCanonicalboolean
    • namestring
    • tokensinteger[]
  • circulatingSupplystring
  • coinstring
  • dayBaseVlmstring
  • dayNtlVlmstring
  • markPxstring
  • midPxstring
  • prevDayPxstring
  • totalSupplystring

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 spot asset contexts Documentation prepared only; runtime not verified.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/hyperliquid/info/spot-meta-and-asset-ctxs' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "type": "spotMetaAndAssetCtxs"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    [
      {
        "tokens": [
          {
            "deployerTradingFeeShare": "0.0",
            "evmContract": {
              "address": "0x6b9e773128f453f5c2c60935ee2de2cbc5390a24",
              "evm_extra_wei_decimals": -2
            },
            "fullName": null,
            "index": 0,
            "isCanonical": true,
            "name": "USDC",
            "szDecimals": 8,
            "tokenId": "0x6d1e7cde53ba9467b783cb7c530ce054",
            "weiDecimals": 8
          },
          {
            "deployerTradingFeeShare": "0.0",
            "evmContract": {
              "address": "0x9b498c3c8a0b8cd8ba1d9851d40d186f1872b44e",
              "evm_extra_wei_decimals": 13
            },
            "fullName": null,
            "index": 1,
            "isCanonical": true,
            "name": "PURR",
            "szDecimals": 0,
            "tokenId": "0xc1fb593aeffbeb02f85e0308e9956a90",
            "weiDecimals": 5
          },
          {
            "deployerTradingFeeShare": "0.0",
            "evmContract": {
              "address": "0xa320d9f65ec992eff38622c63627856382db726c",
              "evm_extra_wei_decimals": 10
            },
            "fullName": null,
            "index": 2,
            "isCanonical": false,
            "name": "HFUN",
            "szDecimals": 2,
            "tokenId": "0xbaf265ef389da684513d98d68edf4eae",
            "weiDecimals": 8
          }
        ],
        "universe": [
          {
            "index": 0,
            "isCanonical": true,
            "name": "PURR/USDC",
            "tokens": [
              1,
              0
            ]
          },
          {
            "index": 1,
            "isCanonical": false,
            "name": "@1",
            "tokens": [
              2,
              0
            ]
          },
          {
            "index": 2,
            "isCanonical": false,
            "name": "@2",
            "tokens": [
              3,
              0
            ]
          }
        ]
      },
      [
        {
          "circulatingSupply": "594709422.5915999413",
          "coin": "PURR/USDC",
          "dayBaseVlm": "8853412.0",
          "dayNtlVlm": "912895.5019269999",
          "markPx": "0.099303",
          "midPx": "0.0993955",
          "prevDayPx": "0.10425",
          "totalSupply": "594709433.8981200457"
        },
        {
          "circulatingSupply": "995714.7198891999",
          "coin": "@1",
          "dayBaseVlm": "1393.94",
          "dayNtlVlm": "16603.3262",
          "markPx": "11.81",
          "midPx": "11.794",
          "prevDayPx": "11.951",
          "totalSupply": "995714.7707153599"
        },
        {
          "circulatingSupply": "4869923779.8203802109",
          "coin": "@2",
          "dayBaseVlm": "0.0",
          "dayNtlVlm": "0.0",
          "markPx": "0.00005779",
          "midPx": "0.0000577",
          "prevDayPx": "0.0000583",
          "totalSupply": "6867929573.127530098"
        }
      ]
    ]

Common questions

Is the root result one flat market list?

No. Preserve the metadata object and its paired context array before preparing a flattened view.

Can token and pair indices be used interchangeably?

No. The tokens array and universe pairs have different identities. Keep both and follow each pair’s token references.

Are mark and mid prices the same reference?

No. Retain markPx and midPx with their own labels and values.

Can I request a coin filter or DEX selector here?

This implementation accepts its fixed type only. Apply display filtering in your own application.

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 Spot Asset Contexts API with your agent

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