{"uid":"cap_9HscrpeXOHeqQuFQS2-38","slug":"hyperliquid-account-perpetuals-state-43a612b9","name":"Hyperliquid Account Perpetuals State","description":"A Hyperliquid account's perpetuals state — open positions, margin summary and withdrawable balance, for any 0x address.","url":"https://hyperliquid-accounts.use.x402atlas.com/state","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"0x-prefixed 20-byte Hyperliquid account address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["queried_at","address","state"],"properties":{"state":{"type":"object","description":"Upstream Hyperliquid clearinghouseState object relayed verbatim — open positions (size, entry, unrealized PnL, leverage, liquidation price), cross-margin summary (account value, total margin used, total notional), and withdrawable balance"},"address":{"type":"string","description":"Lower-cased account address queried"},"queried_at":{"type":"string","format":"date-time","description":"Time the upstream was queried"}}}}}}},"responseSchema":{"type":"json","example":{"state":{"marginSummary":{"accountValue":"1000.0"},"assetPositions":[]},"address":"0x0000000000000000000000000000000000000000","queried_at":"2026-07-10T12:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_njI49liVV9szyXi58AzUS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns open perpetual positions, cross-margin summary, and withdrawable balance for a given Hyperliquid 0x address.","exampleAgentPrompt":"Pull up the current perpetuals state for Hyperliquid address 0x1234567890abcdef1234567890abcdef12345678 — I want to see the open positions, margin usage, and how much is withdrawable.","exampleUseCases":null,"resultDescription":"Returns a JSON object with the queried address (lowercased), the timestamp of the upstream query, and a verbatim Hyperliquid clearinghouseState object containing: all open perpetual positions (size, entry price, unrealized PnL, leverage, liquidation price), cross-margin summary (account value, total margin used, total notional), and withdrawable balance.","failureModes":["Invalid or malformed address (not a valid 0x 20-byte hex) returns a validation error","Address with no Hyperliquid account history may return an empty positions array","Hyperliquid upstream API unavailable causes a timeout or 5xx error","Payment not processed correctly results in 402 Payment Required","Rate limiting if too many calls are made in quick succession"],"whenToPreferThis":"Use this endpoint when you need a real-time snapshot of a Hyperliquid account's perpetuals exposure — including open positions, margin health, and withdrawable balance — for any arbitrary 0x address. Prefer this over sibling endpoints when you specifically need perps/derivatives data rather than spot balances, trade history, or staking state.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:33:46.843Z","isFirstParty":false}