{"uid":"cap_B_AG5d-YfNu2BQ05FHzXc","slug":"x402stock-hyperliquid-perp-account-state-0fb37988","name":"x402stock Hyperliquid Perp Account State","description":"Live on-chain account state for any wallet on the Hyperliquid perp DEX, by 0x address: account value, total notional, margin used, withdrawable; every open perp position (size, long/short, leverage, entry, unrealized PnL, liquidation price, margin); and resting open orders (up to `?limit=`, default 200; `open_orders_count` is the total). Read-only public chain data, no key. From x402stock","url":"https://agents.x402stock.xyz/api/v1/perps/account/:address?utm_source=zero.xyz","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","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","address":{"type":"string"}},"queryParams":{"type":"object","properties":{"limit":{"type":"integer","default":200,"maximum":1000,"minimum":0}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZVdmwuSdLFX2LJwzhrIKW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live on-chain account state for any wallet on the Hyperliquid perpetual DEX, including account value, margin, open positions, and resting orders.","exampleAgentPrompt":"What's the current account value, margin used, withdrawable balance, and all open perp positions with their unrealized PnL and liquidation prices for the Hyperliquid wallet 0x1234abcd...?","exampleUseCases":[{"title":"Monitor trader risk before copying","prompt":"Pull the full account state for the Hyperliquid address 0xabc123... — I want to see their open positions, leverage on each, liquidation prices, and how much margin they have left before I decide to copy their trades."},{"title":"Check portfolio exposure before market open","prompt":"Give me a snapshot of my Hyperliquid perp account at 0xdeadbeef... — account value, total notional, unrealized PnL on each position, and any resting limit orders I have sitting out there."},{"title":"Alert on near-liquidation positions","prompt":"Look up the open perp positions for wallet 0x9f8e7d... on Hyperliquid and tell me if any of them have a liquidation price within 5% of the current mark price."}],"resultDescription":"A JSON object containing account-level metrics (account value, total notional, margin used, withdrawable amount) and arrays of open perpetual positions (each with symbol, size, direction, leverage, entry price, unrealized PnL, liquidation price, and margin) plus resting open orders (up to the requested limit, with a total open_orders_count field).","failureModes":["Invalid or malformed 0x address returns a 4xx error","Address with no Hyperliquid account history returns empty positions/orders arrays","Network or RPC timeout from Hyperliquid chain causes 5xx","limit query param exceeding 1000 is clamped or rejected","Payment not attached or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need real-time, on-chain account state specifically from the Hyperliquid perpetual DEX — account value, margin, positions, and orders — by wallet address. It's read-only, requires no API key, and is ideal for monitoring, risk analysis, or portfolio snapshotting of any public Hyperliquid address. Prefer it over generic crypto portfolio APIs when Hyperliquid-specific perp data (leverage, liquidation price, margin per position) is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:36:53.679Z","isFirstParty":false,"canonicalSlug":"x402stock-hyperliquid-perp-account-state-0fb37988"}