Skip to main content
GET
/
api
/
hyperliquid
/
account
/
{account_id}
/
state
cURL
curl --request GET \
  --url https://api.production.hyperoru.com/api/hyperliquid/account/{account_id}/state \
  --header 'Authorization: Bearer <token>'
{
  "account_id": 123,
  "environment": "<string>",
  "id": 123,
  "balance_available": 123,
  "balance_total": 123,
  "margin_used": 123,
  "taken_at": "<string>",
  "unrealized_pnl": 123
}

Authorizations

Authorization
string
header
required

Session token issued by POST /api/users/login, transported as Authorization: Bearer <token>.

Path Parameters

account_id
integer<int32>
required

Account ID

Response

Hyperliquid account state

Account snapshot wrapper mirroring the persisted hyperliquid_account_snapshots / binance_account_snapshots row shape.

account_id
integer<int32>
required
environment
string
required
id
integer<int32>
required
balance_available
number<double> | null
balance_total
number<double> | null
margin_used
number<double> | null
taken_at
string | null
unrealized_pnl
number<double> | null