{"uid":"cap_Uj-eB8b5tXvTdZ2ur_JSL","slug":"delx-commerce-liquidation-price-calculator-long-position-d32897f1","name":"Delx Commerce — Liquidation Price Calculator (Long Position)","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/liq-price-long?utm_source=zero.xyz","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_u8LK4Ok5n1Lv4eaHdMUGY","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 liquidation price for a leveraged long position given entry price, leverage, and maintenance margin rate (MMR).","exampleAgentPrompt":"What's the liquidation price for a long position I opened at $100 with 10x leverage and a 0.5% maintenance margin rate?","exampleUseCases":[{"title":"Pre-trade risk check for long","prompt":"I'm thinking of opening a long at $2,400 entry with 5x leverage and a 0.5% MMR — what price would liquidate me?"},{"title":"Automated bot safety threshold","prompt":"My trading bot just entered a long at $65,000 with 20x leverage and 0.5% MMR. What's the exact liquidation price it needs to watch out for?"},{"title":"Comparing leverage risk levels","prompt":"If I go long ETH at $3,200 with an MMR of 0.5%, what's the liquidation price at 10x leverage versus 20x?"}],"resultDescription":"Returns a JSON object containing the computed liquidation price for the long position (liq_price), along with the echoed input fields (mmr, entry, leverage) and a schema identifier (schema: 'delx/util-liq-price-long/v1').","failureModes":["Missing required fields (mmr, entry, leverage) result in a validation error","Non-numeric or zero values for entry or leverage may produce undefined/error responses","Leverage values at or below 1 may yield nonsensical liquidation prices","Payment failure via x402 protocol returns a 402 response blocking the computation"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call, no-signup computation of the liquidation price for a leveraged LONG futures or perpetual position. Prefer this over manual formula implementations when you need verifiable, schema-tagged results delivered via USDC micropayment (x402 on Base or Solana). Not suitable for short positions (use the corresponding short endpoint) or for positions with complex cross-margin calculations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.479Z","isFirstParty":false,"canonicalSlug":"delx-commerce-liquidation-price-calculator-long-position-d32897f1"}