cURL
curl --request GET \ --url https://api.production.hyperoru.com/api/hyperliquid/accounts/{account_id}/positions \ --header 'Authorization: Bearer <token>'
{ "positions": [ { "side": "<string>", "size": 123, "symbol": "<string>", "entry_price": 123, "leverage": 123, "liquidation_price": 123, "mark_price": 123, "unrealized_pnl": 123 } ], "total_count": 123, "total_unrealized_pnl": 123 }
Session token issued by POST /api/users/login, transported as Authorization: Bearer <token>.
POST /api/users/login
Authorization: Bearer <token>
Account ID
Open/closed positions for this account
Response wrapping positions plus totals.
Show child attributes
Was this page helpful?