get
https://open-api-v4.coinglass.com/api/hyperliquid/user-position
This endpoint provides Hyperliquid user position data, including margin summaries, withdrawable balance, and open asset positions.
Cache / Update Frequency: Real time for all the API plans.
This endpoint is available on the following API plans:
| Plans | Hobbyist | Startup | Standard | Professional | Enterprise |
|---|---|---|---|---|---|
| Available | ❌ | ✅ | ✅ | ✅ | ✅ |
Response Data
{
"code": "0",
"data": {
"margin_summary": {
"account_value": 179250588.896754,
"total_ntl_pos": 679947383.29435,
"total_raw_usd": -500696794.397596,
"total_margin_used": 131236726.65887
},
"cross_margin_summary": {
"account_value": 179250588.896754,
"total_ntl_pos": 679947383.29435,
"total_raw_usd": -500696794.397596,
"total_margin_used": 131236726.65887
},
"cross_maintenance_margin_used": 19278725.276478,
"withdrawable": 46429612.237884,
"asset_positions": [
{
"type": "oneWay",
"position": {
"coin": "BTC",
"szi": 1000,
"leverage": {
"type": "cross",
"value": 5
},
"entry_px": 91506.7,
"position_value": 86265000,
"unrealized_pnl": -5643767.29312,
"return_on_equity": -0.3083797767,
"max_leverage": 5,
"cum_funding": {
"all_time": -104732.177706,
"since_open": 87958.233078,
"since_change": 84811.539668
}
}
},
}
]
}
}