# Hyperliquid — Retrieve a user's token balances

Get Hyperliquid Token Balances data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as type, user, and retrieve structured data including token coin label, token index, reported total balance, reported held amount, and reported entry-notional context for balance dashboards, and account reconciliation.

Documentation: https://openany.si/hyperliquid/hyperliquid-retrieve-a-user-s-token-balances/2c07026e-2785-4d28-b679-4554bec1bd61/
API ID: 2c07026e-2785-4d28-b679-4554bec1bd61
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/spot-clearinghouse-state
Page update time: 2026-12-03T02:49:36.075Z
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.605Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid Token Balances API

Use type="spotClearinghouseState" and user. The object contains balances entries with coin, token, total, hold and entryNtl. Keep the numeric token index and coin label together, and retain decimal-string amounts without treating hold as a separate token balance.

## What You Can Build

- **Balance dashboards**: Show total and held amounts for each token identity.
- **Account reconciliation**: Keep entry-notional context separate from balance amounts.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `balances[].coin` | Token coin label |
| `balances[].token` | Token index |
| `balances[].total` | Reported total balance |
| `balances[].hold` | Reported held amount |
| `balances[].entryNtl` | Reported entry-notional context |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Retrieve a user's token balances 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": "spotClearinghouseState",
          "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
        }
      ],
      "properties": {
        "type": {
          "const": "spotClearinghouseState",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "spotClearinghouseState"
          ],
          "example": "spotClearinghouseState",
          "type": "string"
        },
        "user": {
          "description": "Onchain address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.",
          "example": "0x677d831aef5328190852e24f13c46cac05f984e7",
          "pattern": "^0x[0-9a-fA-F]{40}$",
          "type": "string"
        }
      },
      "required": [
        "type",
        "user"
      ],
      "type": "object",
      "description": "Retrieve a user's token balances Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "balances": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "coin": {
            "type": "string"
          },
          "entryNtl": {
            "type": "string"
          },
          "hold": {
            "type": "string"
          },
          "token": {
            "type": "integer"
          },
          "total": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/hyperliquid/info/spot-clearinghouse-state' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "type": "spotClearinghouseState",
  "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "balances": [
    {
      "coin": "USDC",
      "entryNtl": "0.0",
      "hold": "0.0",
      "token": 0,
      "total": "246.63995144"
    },
    {
      "coin": "PURR",
      "entryNtl": "0.0",
      "hold": "0.0",
      "token": 1,
      "total": "23.0"
    },
    {
      "coin": "MUNCH",
      "entryNtl": "2.64207082",
      "hold": "0.0",
      "token": 146,
      "total": "9254.18853"
    },
    {
      "coin": "HYPE",
      "entryNtl": "74.21557528",
      "hold": "0.0",
      "token": 150,
      "total": "3.03085379"
    },
    {
      "coin": "UBTC",
      "entryNtl": "98.16085655",
      "hold": "0.0",
      "token": 197,
      "total": "0.0008959716"
    },
    {
      "coin": "MAX",
      "entryNtl": "0.0",
      "hold": "0.0",
      "token": 734,
      "total": "30250.0"
    }
  ]
}
```

## 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 token an EVM contract address?
No. It is a numeric token index. Keep it distinct from coin labels, hexadecimal token IDs and EVM addresses.

### Can total and hold be added as independent balances?
Keep their meanings separate. They are components of the returned token-balance record, not separate token holdings.

### Is this a complete deposit and withdrawal history?
No. It reads balances. Ledger history is a separately scoped query.

### Does this request move tokens?
No. It reads account token balances and does not submit transfers or withdrawals.

### 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-a-user-s-token-balances/2c07026e-2785-4d28-b679-4554bec1bd61/

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