{"uid":"cap_6DKD-7D8b7vcEs_Qzpsy9","slug":"long-liquidation-price-calculator-531f6f9e","name":"Long Liquidation Price Calculator","description":"Approximate long liquidation price from entry, leverage, and maintenance. Call when risk banners for leveraged long positions (advisory model). Returns liq price estimate for long as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/liq-price-long","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mmr":{"type":"number","description":"Input field: mmr."},"entry":{"type":"integer","description":"Input field: entry."},"leverage":{"type":"integer","description":"Input field: leverage."}}},"responseSchema":{"type":"json","example":{"mmr":0.005,"entry":100,"schema":"delx/util-liq-price-long/v1","leverage":10,"liq_price":90.5}},"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_XmRNC10uCnDQ1wBd1l9dE","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 the approximate liquidation price for a leveraged long position given entry price, leverage, and maintenance margin rate","exampleAgentPrompt":"What's the liquidation price for a long I'm entering at 50000 with 10x leverage and a 0.5% maintenance margin rate?","exampleUseCases":[{"title":"Pre-trade liquidation risk check","prompt":"I'm about to open a long on BTC at an entry of 65000 with 20x leverage and a 0.5% maintenance margin. What's my liquidation price?"},{"title":"Risk banner for active long position","prompt":"Show me the liquidation price for my long position — entry was 3200, leverage is 5x, and the maintenance margin rate is 0.4%."},{"title":"Comparing liquidation levels across leverage tiers","prompt":"If I enter a long at 42000, what would my liquidation price be at 5x leverage versus 10x leverage, assuming a 0.5% maintenance margin rate?"}],"resultDescription":"A deterministic JSON response containing the estimated liquidation price for the long position, computed locally from the supplied entry price, leverage multiplier, and maintenance margin rate — no live market data or external feeds used","failureModes":["Missing required fields (entry, leverage, or mmr) returns validation error","Invalid types (e.g. non-numeric mmr) cause schema rejection","Leverage of 1 or less may produce nonsensical or infinite liquidation prices","Extremely high leverage values may yield liquidation prices very close to entry","Payment failure via x402 protocol prevents endpoint execution"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, locally-computed long liquidation price estimate without needing live market data, API keys, or on-chain RPC calls — ideal for advisory risk banners in trading UIs, agent-driven risk checks before opening leveraged long positions, or any scenario where a quick math-based liq price estimate suffices and latency or cost must be minimized","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:01:24.260Z","isFirstParty":false}