POST
/
4f8d8f4040bdacd1577bff8058438274
/
info
info (activeAssetData)
curl --request POST \
  --url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/info \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "activeAssetData",
  "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
  "coin": "BTC"
}'
{
  "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
  "coin": "BTC",
  "leverage": {
    "type": "cross",
    "value": 20
  },
  "maxTradeSzs": [
    "22046.53864",
    "22099.95768"
  ],
  "availableToTrade": [
    "128889576.5241000056",
    "129201877.5867000073"
  ],
  "markPx": "116925.0"
}
Retrieves active asset data for a specific user and coin, including leverage settings, trading limits, and current market price.
Perpetuals only. The activeAssetData type only supports perp markets.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

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

cURL example

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "type": "activeAssetData",
    "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
    "coin": "BTC"
  }' \
  https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/info

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

Body

application/json
type
enum<string>
default:activeAssetData
required

Request type to retrieve active asset data for a specific user and coin

Available options:
activeAssetData
user
string
default:0x31ca8395cf837de08b24da3f660e77761dfb974b
required

Address in 42-character hexadecimal format

coin
string
default:BTC
required

Asset symbol to retrieve data for (e.g., 'BTC', 'ETH', 'SOL')

Response

200 - application/json

Active asset data for the specified user and coin

Active asset data for a user and coin (perpetuals only)

user
string
required

User address

coin
string
required

Asset symbol

leverage
object
required
maxTradeSzs
string[]
required

Maximum trade sizes [long, short]

availableToTrade
string[]
required

Available amounts to trade [long, short]

markPx
string
required

Current mark price