{"uid":"cap_acsNd835ckjxfo6h1dlOE","slug":"hyperliquid-account-trade-fills-d448be44","name":"Hyperliquid Account Trade Fills","description":"A Hyperliquid account's recent trade fills (up to 2000) with price, size, fee and closed PnL, for any 0x address.","url":"https://hyperliquid-accounts.use.x402atlas.com/fills","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","count","fills"],"properties":{"count":{"type":"integer","minimum":0,"description":"Number of fills returned"},"fills":{"type":"array","items":{"type":"object"},"description":"Upstream Hyperliquid userFills array relayed verbatim (up to 2000 most recent) — coin, side, price, size, fee, closed PnL, direction and timestamp per fill"},"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":{"count":0,"fills":[],"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_aCr4J3Cebm5ISrocPZD6s","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":"Retrieves up to 2000 recent trade fills for a Hyperliquid account by 0x address, including price, size, fee, and closed PnL per fill.","exampleAgentPrompt":"Pull the recent trade fills for Hyperliquid account 0x1234567890abcdef1234567890abcdef12345678 — I want to see the prices, sizes, fees, and closed PnL for each fill.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the queried address (lowercased), the timestamp of the query, the count of fills returned, and an array of up to 2000 fill objects — each with coin, side, price, size, fee, closed PnL, direction, and timestamp — relayed verbatim from Hyperliquid's userFills API.","failureModes":["Invalid or malformed 0x address returns a validation error","Address with no trade history returns count 0 and empty fills array","Hyperliquid upstream unavailable causes a gateway or timeout error","Non-hex characters in address fail pattern validation","Payment not completed results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need detailed per-trade execution data (price, size, fee, closed PnL) for a specific Hyperliquid account. Prefer this over the portfolio value or open positions endpoints when the goal is trade history analysis, PnL attribution, or fee auditing rather than current account state.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:33:29.921Z","isFirstParty":false}