{"uid":"cap_GL9SkoIFiOWT9-qKBdvgj","slug":"moneytools-liquidation-price-calculator-d496ee9a","name":"MoneyTools Liquidation Price Calculator","description":"Liquidation price calculator: Perp (isolated margin: side, entry, leverage, maintenance margin) or lending (collateral, debt, liquidation threshold → health factor) liquidation price and distance. Risk math, not advice. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.","url":"https://tools.moneytools.dev/v1/liquidation?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":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":[],"properties":{"debt":{"type":"string","description":"lending: debt value"},"mode":{"type":"string","examples":["perp"],"description":"perp | lending"},"side":{"type":"string","examples":["long"],"description":"long | short"},"entry":{"type":"number","examples":["3000"],"description":"entry price"},"price":{"type":"string","description":"lending: collateral price"},"leverage":{"type":"number","examples":["5"],"description":"x"},"collateral":{"type":"string","description":"lending: collateral amount"},"maintenanceMargin":{"type":"number","examples":["0.5"],"description":"%"},"liquidationThreshold":{"type":"string","examples":["80"],"description":"lending: LT %"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","properties":{"payment":{"type":"object","properties":{"charged":{"type":"boolean"},"network":{"type":"string"},"amountUsd":{"type":"string"},"transaction":{"type":["string","null"]}}},"freeTier":{"type":"object"},"_moneytools":{"type":"object","description":"optional plan / partner hints"}},"description":"Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.","additionalProperties":true}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CcC03FE2da-DXSy9HzUuK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates liquidation price and distance for perpetual futures (isolated margin) or lending positions, including health factor for lending.","exampleAgentPrompt":"What's my liquidation price for a long perp position entered at $3000 with 5x leverage and 0.5% maintenance margin?","exampleUseCases":[{"title":"Perpetual futures liquidation risk check","prompt":"I entered a long ETH perp at $3200 with 10x leverage and 0.5% maintenance margin — what price will liquidate me and how far away is that?"},{"title":"Lending position health factor assessment","prompt":"I have a lending position with $10,000 collateral at a price of $1.00, $7,000 in debt, and an 80% liquidation threshold — what's my health factor and liquidation price?"},{"title":"Short position liquidation calculation","prompt":"Can you calculate the liquidation price for a short perp trade I entered at $65,000 with 3x leverage and a 0.5% maintenance margin?"}],"resultDescription":"Returns a JSON object containing the computed liquidation price, distance to liquidation (as percentage or absolute price difference), and for lending positions the health factor. Also includes payment metadata indicating whether a charge was applied, the network, amount in USD, and transaction hash if paid via x402.","failureModes":["Missing required parameters (mode, side, entry, leverage, or maintenance margin for perp) returns an error","Invalid parameter types or out-of-range values return a validation error","Free tier exhausted (10/day) without payment method returns HTTP 402 with PAYMENT-REQUIRED header","Payment failure via x402 results in no charge and no result","Lending mode missing collateral, debt, price, or liquidation threshold returns an error"],"whenToPreferThis":"Use this endpoint when you need quick, reliable liquidation price math for either isolated-margin perpetual futures or lending protocol positions without building the formulas yourself. It handles both perp and lending modes in a single endpoint, supports x402 micropayment for pay-as-you-go access with no subscription needed, and is not charged on failure — making it safe for speculative agent calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:43:26.347Z","isFirstParty":false,"canonicalSlug":"moneytools-liquidation-price-calculator-d496ee9a"}