{"uid":"cap_kr4-znGEAOqRLOxh0loRa","slug":"perpcheck-hyperliquid-pre-trade-order-validator-5b866e7d","name":"PerpCheck – Hyperliquid Pre-Trade Order Validator","description":"Pre-trade order check for Hyperliquid perps, for trading agents: will this order be rejected, and what does it cost and risk? Send coin, side, size or notional, optional limit price, leverage, cross/isolated and reduce-only. Returns REJECT_LIKELY / CAUTION / OK with each exchange-rule problem and a fix value (size decimals, price tick, $10 minimum, max leverage by margin tier, isolated-only, open-interest cap, delisted, far-from-mark limits), plus isolated liquidation estimate, taker impact from the live L2 book, funding carry per day and size vs 24 h volume. Read-only: never places, signs or holds orders. Fail-closed. Paid per call over x402 or prepaid credits; free preview and free remote MCP tier. Not financial advice; the exchange decides whether an order is accepted. Not financial advice; the exchange decides whether an order is accepted. PerpCheck is a read-only pre-trade check: it never places, signs or holds orders, has no custody and never asks for keys.","url":"https://perpcheck.agentgate.workers.dev/v1/lite?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"],"type":"string"},"queryParams":{"type":"object","required":["coin","side"],"properties":{"coin":{"type":"string","description":"Hyperliquid main-dex perp name, e.g. BTC, ETH, SOL, HYPE, kPEPE"},"side":{"enum":["long","short","buy","sell"],"type":"string","description":"long/buy or short/sell"},"size":{"type":"string","description":"Order size in coins, exactly as you would send it (decimals are checked), e.g. 0.001. Give size or notional."},"price":{"type":"string","description":"Limit price exactly as you would send it (tick rule is checked). Omit for a market order (then taker impact is estimated from the L2 book)."},"margin":{"enum":["cross","isolated"],"type":"string","description":"cross (default) or isolated"},"leverage":{"type":"number","description":"Leverage, e.g. 10 (default 1)"},"notional":{"type":"number","description":"Order value in USD (instead of size), e.g. 100"},"reduceOnly":{"type":"boolean","description":"true if the order only reduces a position (exempt from the minimum and OI cap)"}},"description":"Search intents: hyperliquid order check, pre trade check, perp order validation, order size tick check, trading bot safety, hyperliquid rules"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"coin":{"type":"string"},"side":{"type":"string"},"size":{"type":"number"},"tier":{"type":"string"},"rules":{"type":"object"},"issues":{"type":"array"},"margin":{"type":"string"},"verdict":{"type":"string"},"leverage":{"type":"number"},"warnings":{"type":"array"},"checked_at":{"type":"string"},"confidence":{"type":"string"},"disclaimer":{"type":"string"},"order_type":{"type":"string"},"reduce_only":{"type":"boolean"},"notional_usd":{"type":"number"},"sources_failed":{"type":"array"}}}}}}},"responseSchema":{"type":"json","example":{"coin":"ETH","side":"long","size":0.0012,"tier":"lite","rules":{"szDecimals":4,"max_leverage":25,"only_isolated":false,"min_notional_usd":10,"price_max_decimals":2,"price_max_sig_figs":5,"max_leverage_at_size":25},"issues":[{"msg":"order value $3.70 is below Hyperliquid's $10 minimum","code":"min_notional"},{"fix":0.0012,"msg":"size has 7 decimals; this coin allows 4 (szDecimals)","code":"size_decimals"},{"fix":3000.1,"msg":"price has 3 decimals; max for this coin is 2","code":"price_tick"},{"fix":25,"msg":"leverage 60x is above the 25x maximum for this coin at $4 notional","code":"leverage"}],"margin":"cross","verdict":"REJECT_LIKELY","leverage":60,"warnings":[{"msg":"limit buy above mark by 25.37%: fills immediately as taker","code":"marketable_limit"}],"checked_at":"2026-10-23T19:20:07.798Z","confidence":"high","disclaimer":"Not financial advice; the exchange decides whether an order is accepted. PerpCheck is a read-only pre-trade check: it never places, signs or holds orders, has no custody and never asks for keys.","order_type":"limit","reduce_only":false,"notional_usd":3.7,"sources_failed":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LnS1xbkCRuoLXwTRVAZLR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a proposed Hyperliquid perpetuals order against exchange rules before submission, returning a REJECT_LIKELY/CAUTION/OK verdict with specific rule violations and fix suggestions.","exampleAgentPrompt":"Before I send this trade, check if a long order for 0.05 ETH at a limit price of $3000.10 with 10x leverage in cross margin on Hyperliquid will be accepted — tell me the verdict and any rule violations I need to fix.","exampleUseCases":[{"title":"Trading bot safety gate","prompt":"My bot is about to submit a short order for 0.001 BTC at $68,000 limit price with 20x leverage in isolated margin on Hyperliquid — run a pre-trade check and tell me if it will be rejected and what to fix."},{"title":"Sizing a minimum viable position","prompt":"I want to open a long on kPEPE worth about $15 notional using cross margin at 5x leverage — will that meet Hyperliquid's minimum order requirements, or do I need to adjust?"},{"title":"Validating aggressive leverage before submission","prompt":"Check whether a short on HYPE using 60x leverage and isolated margin with a size of 10 coins will be accepted by Hyperliquid, and tell me the maximum leverage allowed at that position size."}],"resultDescription":"A JSON object with a top-level verdict (REJECT_LIKELY, CAUTION, or OK), an array of issues each containing a rule violation code, human-readable message, and suggested fix value, plus warnings (e.g. marketable limit), exchange rules for the coin (szDecimals, max_leverage, min_notional, price_max_decimals), estimated notional in USD, margin mode, leverage, order type, confidence level, and a disclaimer. Also includes taker impact from the live L2 book, funding carry, and size vs 24h volume when available.","failureModes":["Unknown coin symbol returns error or low-confidence result","Hyperliquid API unavailable causes sources_failed list to populate and confidence to degrade","Missing required query params (coin or side) returns 400-level error","Truncated response if the exchange metadata feed is stale","Rate limiting or payment failure (x402) if credits exhausted"],"whenToPreferThis":"Use this endpoint when a trading agent or bot needs to pre-validate a Hyperliquid perpetuals order before submission to avoid on-chain rejections. It is the only purpose-built, read-only pre-trade checker for Hyperliquid that covers all major rejection causes (size decimals, price tick, minimum notional, max leverage by tier, OI cap, isolated-only coins, delisted assets, far-from-mark limits) in a single call, with live L2 book data for market impact and liquidation estimates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:31:11.342Z","isFirstParty":false,"canonicalSlug":"perpcheck-hyperliquid-pre-trade-order-validator-5b866e7d"}