Account state
Endpoint
POST /info
Selector: type: "clearinghouseState"
Purpose
Returns the customer's perpetual account summary, margin and positions from the confidential ledger.
Authorization
Owner or approved reader for user. The SDK signs requests; raw clients use proof headers.
Request fields
| Field | Type | Required | Meaning |
|---|---|---|---|
type | String | Yes | clearinghouseState. |
user | Address | Yes | Customer account address; the signer must own it or have read permission. |
dex | String | No | Omit or use the empty string for the default perpetual DEX. |
Request example
{
"type": "clearinghouseState",
"user": "0x1111111111111111111111111111111111111111"
}Response fields
| Field | Meaning |
|---|---|
assetPositions | Position entries containing the coin, signed size, entry price, cross leverage, margin, PnL and funding. |
marginSummary / crossMarginSummary | Account value, margin used, gross position notional and raw USD cash, encoded as decimal strings. |
crossMaintenanceMarginUsed | Maintenance margin in decimal quote units. |
withdrawable | The private account's currently withdrawable amount; this is not a completed custody payout. |
time | Snapshot time in Unix milliseconds. |
Response example
Illustrative response:
{
"assetPositions": [],
"crossMaintenanceMarginUsed": "0",
"crossMarginSummary": {
"accountValue": "0",
"totalMarginUsed": "0",
"totalNtlPos": "0",
"totalRawUsd": "0"
},
"marginSummary": {
"accountValue": "0",
"totalMarginUsed": "0",
"totalNtlPos": "0",
"totalRawUsd": "0"
},
"time": 1796238000000,
"withdrawable": "0"
}Constraints
- The supported position model uses cross margin.
liquidationPxis null; the API does not publish an unverified cross-margin liquidation estimate.- Only the default perpetual DEX is supported.