{"uid":"cap_3stVg9guv_ShBgIiFfdgM","slug":"saylor-innovations-perpetual-futures-liquidation-price-calculator-5eb24af7","name":"Saylor Innovations Perpetual Futures Liquidation Price Calculator","description":"Perpetual futures liquidation price for a long or short at any leverage, with the percent move to liquidation, margin, position size and loss at liquidation.","url":"https://saylorinnovations.com/api/perps/liquidation-price?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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["entry_price","leverage","side"],"properties":{"side":{"type":"string","description":"long or short"},"leverage":{"type":"string","description":"leverage 1-200"},"margin_usd":{"type":"string","description":"optional margin posted, default 100"},"entry_price":{"type":"string","description":"entry price"},"fee_percent":{"type":"string","description":"optional closing fee buffer, default 0.06"},"position_usd":{"type":"string","description":"or the position notional instead of margin"},"current_price":{"type":"string","description":"optional price now for the distance to liquidation"},"maintenance_margin_percent":{"type":"string","description":"optional, default 0.5"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["liquidation_price","move_to_liquidation_percent"],"properties":{"note":{"type":"string","description":"Plain-language caveat about how to read and use the result"},"side":{"type":"string","description":"Position direction: long or short"},"source":{"type":"string","description":"Where the data or formula comes from"},"leverage":{"type":"number","description":"Leverage used"},"checked_at":{"type":"string","description":"Time the check was run (UTC)"},"margin_usd":{"type":"number","description":"Margin posted for the position"},"size_units":{"type":"number","description":"Position size in units of the asset"},"entry_price":{"type":"number","description":"Entry price used"},"position_usd":{"type":"number","description":"Position notional value in USD"},"current_price":{"type":["number","null"],"description":"Current price supplied"},"liquidation_price":{"type":"number","description":"Approximate price at which the position is liquidated"},"already_liquidated":{"type":["boolean","null"],"description":"True when the current price is already beyond the liquidation price"},"fee_percent_assumed":{"type":["number","null"],"description":"Closing fee buffer assumed, in percent"},"loss_at_liquidation_usd":{"type":"number","description":"Approximate margin lost when liquidated, after the maintenance margin remainder"},"maintenance_margin_percent":{"type":["number","null"],"description":"Maintenance margin rate assumed, in percent"},"move_to_liquidation_percent":{"type":"number","description":"Percent price move from entry to liquidation (negative for longs)"},"distance_from_current_percent":{"type":["number","null"],"description":"Percent move from the current price to liquidation"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"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_dSZwZ9l5EA2xCk0uzsUSe","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":"Calculates the liquidation price for a perpetual futures long or short position given entry price, leverage, and optional margin, returning percent move to liquidation, position size, and estimated loss at liquidation.","exampleAgentPrompt":"If I open a long position on a perpetual futures contract at an entry price of $65,000 with 10x leverage and $200 margin, what's my liquidation price and how far would the price need to drop to hit it?","exampleUseCases":[{"title":"Risk check before opening a trade","prompt":"I'm thinking of going long on a perp at $3,500 entry with 25x leverage and $150 margin — what's my liquidation price and what percent drop would wipe me out?"},{"title":"Short position liquidation estimate","prompt":"I want to short a crypto perp at an entry price of $0.85 using 50x leverage. With $100 margin, where does my short get liquidated and how much would I lose?"},{"title":"Comparing leverage risk levels","prompt":"Can you calculate the liquidation price and percent move for a long perp position at $42,000 entry price with 5x leverage and default margin, so I can see how risky this level of leverage is?"}],"resultDescription":"Returns a JSON object containing the calculated liquidation price, percent move required to reach liquidation, margin posted in USD, position size in asset units, notional position value in USD, estimated loss at liquidation in USD, the entry price and leverage used, position side, an optional current price and already-liquidated flag, the fee buffer assumed, and a plain-language note explaining how to interpret the results.","failureModes":["Missing required parameters (entry_price, leverage, or side) returns an error","Invalid side value (not 'long' or 'short') causes a validation error","Leverage outside the 1-200 range may return an error or unexpected result","Non-numeric entry_price or leverage values cause parsing failures","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a quick, formula-based calculation of perpetual futures liquidation price without needing to connect to a live exchange. Ideal for pre-trade risk assessment, educational tools, trading bots that evaluate trade setups, or any scenario where you have an entry price and leverage and want to understand downside risk. Prefer this over manual calculation or exchange-specific APIs when you need a neutral, exchange-agnostic result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T00:42:48.873Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-perpetual-futures-liquidation-price-calculator-5eb24af7"}