# Hyperliquid — Retrieve User's Active Asset Data

Get Hyperliquid User Asset Data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as coin, type, user, and retrieve structured data including queried account address, coin identifier, reported leverage mode, reported leverage value, and reported mark price for account asset panels, and availability references.

Documentation: https://openany.si/hyperliquid/hyperliquid-retrieve-user-s-active-asset-data/8560b0c1-7db6-4644-85dd-097d40897941/
API ID: 8560b0c1-7db6-4644-85dd-097d40897941
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/active-asset-data
Page update time: 2026-12-03T02:49:36.052Z
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.549Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid User Asset Data API

Send type="activeAssetData", user and coin. The object includes the queried identities, leverage, markPx, availableToTrade and maxTradeSzs. Preserve each array’s native order and keep the leverage type separate from its numeric value.

## What You Can Build

- **Account asset panels**: Display leverage and mark-price context for one user and coin.
- **Availability references**: Keep native array order with the queried identities.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `user` | Queried account address |
| `coin` | Coin identifier |
| `leverage.type` | Reported leverage mode |
| `leverage.value` | Reported leverage value |
| `markPx` | Reported mark price |
| `availableToTrade` | Reported trading-availability values |
| `maxTradeSzs` | Reported maximum trade-size values |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Retrieve User's Active Asset Data 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": [
        {
          "coin": "BTC",
          "type": "activeAssetData",
          "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
        }
      ],
      "properties": {
        "coin": {
          "description": "Coin, e.g. \"ETH\". See [here](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#perpetuals-vs-spot) for more details.",
          "example": "BTC",
          "type": "string"
        },
        "type": {
          "const": "activeAssetData",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "activeAssetData"
          ],
          "example": "activeAssetData",
          "type": "string"
        },
        "user": {
          "description": "Address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.",
          "example": "0x677d831aef5328190852e24f13c46cac05f984e7",
          "pattern": "^0x[0-9a-fA-F]{40}$",
          "type": "string"
        }
      },
      "required": [
        "type",
        "user",
        "coin"
      ],
      "type": "object",
      "description": "Retrieve User's Active Asset Data 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": {
    "availableToTrade": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "coin": {
      "type": "string"
    },
    "leverage": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "value": {
          "type": "integer"
        }
      }
    },
    "markPx": {
      "type": "string"
    },
    "maxTradeSzs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "user": {
      "type": "string"
    }
  }
}
```

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

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "availableToTrade": [
    "463.943191",
    "463.943191"
  ],
  "coin": "BTC",
  "leverage": {
    "type": "cross",
    "value": 20
  },
  "markPx": "79917.0",
  "maxTradeSzs": [
    "0.1161",
    "0.1161"
  ],
  "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}
```

## 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
### Which inputs are required?
Supply the fixed type, a 42-character hexadecimal user address and one coin identifier.

### Can I add the values in maxTradeSzs together?
Keep the array entries in their native order and scope. They are trading-availability context, not independent holdings to sum.

### Does leverage.value alone describe the leverage setting?
Retain leverage.type with the value. The mode and value have distinct roles.

### Does the query place an order using the returned capacity?
No. It reads asset data and does not submit an order or change leverage.

### 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-user-s-active-asset-data/8560b0c1-7db6-4644-85dd-097d40897941/

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