> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# activeAssetData | Hyperliquid info

> Retrieves active asset data for a specific user and coin, including leverage settings, trading limits, and current market price. On Hyperliquid info.

> [!NOTE]
>
> This method is available on Chainstack. Not all Hyperliquid methods are available on Chainstack, as the open-source node implementation does not support them yet — see [Hyperliquid methods](https://docs.chainstack.com/docs/hyperliquid-methods.md) for the full availability breakdown.

Retrieves active asset data for a specific user and coin, including leverage settings, trading limits, and current market price.

> [!NOTE]
>
> Perpetuals only. The `activeAssetData` type only supports perp markets.

## Parameters

* `type` (string, required) — Must be `"activeAssetData"`
* `user` (string, required) — Address in 42-character hexadecimal format
* `coin` (string, required) — Asset symbol (e.g., "BTC", "ETH", "SOL")

## Returns

* `user` (string) — User address
* `coin` (string) — Asset symbol
* `leverage` (object) — Leverage configuration:
  * `type` (string) — Leverage type ("cross" or "isolated")
  * `value` (number) — Current leverage value
* `maxTradeSzs` (array) — Maximum trade sizes \[long, short]
* `availableToTrade` (array) — Available amounts to trade \[long, short]
* `markPx` (string) — Current mark price

## Example request

```bash Shell theme={"system"}
curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "type": "activeAssetData",
    "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
    "coin": "BTC"
  }' \
  https://hyperliquid-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/info
```

```python hyperliquid-python-sdk theme={"system"}
from hyperliquid.info import Info

# The hyperliquid-python-sdk exposes activeAssetData as a websocket
# subscription, so keep the websocket manager running (do not pass skip_ws=True).
info = Info("YOUR_CHAINSTACK_ENDPOINT")


def on_active_asset_data(message):
    print(message)


info.subscribe(
    {
        "type": "activeAssetData",
        "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
        "coin": "BTC",
    },
    on_active_asset_data,
)
```

```typescript @nktkas/hyperliquid theme={"system"}
import { HttpTransport, InfoClient } from "@nktkas/hyperliquid";

const transport = new HttpTransport({ apiUrl: "YOUR_CHAINSTACK_ENDPOINT" });
const info = new InfoClient({ transport });

const data = await info.activeAssetData({
  user: "0x31ca8395cf837de08b24da3f660e77761dfb974b",
  coin: "BTC",
});

console.log(data);
```

> [!NOTE]
>
> **Use your own endpoint in your code.** The code examples use a placeholder Chainstack endpoint (YOUR\_CHAINSTACK\_ENDPOINT) — replace it with your own Hyperliquid node endpoint from the [Chainstack console](https://console.chainstack.com/). The curl above uses a shared public endpoint for quick checks only; do not use it in production.

## Use cases

* **Trading interface** — Display current leverage and trading limits to users
* **Risk management** — Monitor available trading capacity and leverage settings
* **Position sizing** — Calculate optimal position sizes based on available limits
* **Market analysis** — Track mark prices and leverage utilization across assets


## OpenAPI

````yaml openapi/hyperliquid_node_api/hypercore_info/info_activeassetdata.json post /mt_c524ad9781ae5dccd9ac6f5b0370e/info
openapi: 3.0.0
info:
  title: Hyperliquid Node API
  version: 1.0.0
  description: This is an API for interacting with Chainstack Hyperliquid node.
servers:
  - url: https://hyperliquid-mainnet.core.chainstack.com
security: []
paths:
  /mt_c524ad9781ae5dccd9ac6f5b0370e/info:
    post:
      tags:
        - hyperliquid operations
      summary: info (activeAssetData)
      operationId: infoActiveAssetData
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  default: activeAssetData
                  enum:
                    - activeAssetData
                  description: >-
                    Request type to retrieve active asset data for a specific
                    user and coin
                user:
                  type: string
                  default: '0x31ca8395cf837de08b24da3f660e77761dfb974b'
                  description: Address in 42-character hexadecimal format
                coin:
                  type: string
                  default: BTC
                  description: >-
                    Asset symbol to retrieve data for (e.g., 'BTC', 'ETH',
                    'SOL')
              required:
                - type
                - user
                - coin
      responses:
        '200':
          description: Active asset data for the specified user and coin
          content:
            application/json:
              schema:
                type: object
                description: Active asset data for a user and coin (perpetuals only)
                properties:
                  user:
                    type: string
                    description: User address
                  coin:
                    type: string
                    description: Asset symbol
                  leverage:
                    type: object
                    properties:
                      type:
                        type: string
                        description: cross or isolated
                      value:
                        type: number
                        description: Leverage value
                  maxTradeSzs:
                    type: array
                    description: Maximum trade sizes [long, short]
                    items:
                      type: string
                  availableToTrade:
                    type: array
                    description: Available amounts to trade [long, short]
                    items:
                      type: string
                  markPx:
                    type: string
                    description: Current mark price
                required:
                  - user
                  - coin
                  - leverage
                  - maxTradeSzs
                  - availableToTrade
                  - markPx
              example:
                user: '0x31ca8395cf837de08b24da3f660e77761dfb974b'
                coin: BTC
                leverage:
                  type: cross
                  value: 20
                maxTradeSzs:
                  - '22046.53864'
                  - '22099.95768'
                availableToTrade:
                  - '128889576.5241000056'
                  - '129201877.5867000073'
                markPx: '116925.0'

````