{"uid":"cap_07CcJ6ptwjPuAqRqp7ieJ","slug":"vextorium-perpetual-futures-calculator-isolated-margin-fdade2ab","name":"Vextorium Perpetual Futures Calculator (Isolated Margin)","description":"Perpetual futures calculator (isolated margin): liquidation price and distance, notional and size, PnL at stop-loss and take-profit, reward/risk ratio, and position sizing to risk a fixed USD amount.","url":"https://api.vextorium.com/calculadora-perpetuo-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["entrada","apalancamiento"],"properties":{"lado":{"enum":["long","short"],"type":"string"},"margen":{"type":"number","description":"Margin posted in USD (optional)"},"entrada":{"type":"number","description":"Entry price"},"stop_loss":{"type":"number","description":"Stop-loss price (optional)"},"riesgo_usd":{"type":"number","description":"USD to risk; with stop_loss, sizes the position"},"take_profit":{"type":"number","description":"Take-profit price (optional)"},"apalancamiento":{"type":"number","description":"Leverage (1-200)"},"margen_mantenimiento_pct":{"type":"number","description":"Maintenance margin % (default 0.5)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"lado":{"type":["string","null"]},"nota":{"type":["string","null"]},"margen":{"type":["number","null"]},"entrada":{"type":["number","null"]},"cantidad":{"type":["number","null"]},"nocional":{"type":["number","null"]},"en_stop_loss":{"type":["object","null"],"properties":{"pnl":{"type":["number","null"]},"precio":{"type":["number","null"]},"pnl_pct_margen":{"type":["number","null"]}}},"apalancamiento":{"type":["number","null"]},"en_take_profit":{"type":["object","null"],"properties":{"pnl":{"type":["number","null"]},"precio":{"type":["number","null"]},"pnl_pct_margen":{"type":["number","null"]}}},"precio_liquidacion":{"type":["number","null"]},"ratio_beneficio_riesgo":{"type":["number","null"]},"distancia_liquidacion_pct":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"json","example":{"lado":"long","nota":"Margen aislado, sin comisiones ni funding. Cada exchange redondea distinto: úsalo como estimación.","margen":100,"entrada":60000,"cantidad":0.01666667,"nocional":1000,"en_stop_loss":{"pnl":-50,"precio":57000,"pnl_pct_margen":-50},"apalancamiento":10,"en_take_profit":{"pnl":100,"precio":66000,"pnl_pct_margen":100},"precio_liquidacion":54271.35678392,"ratio_beneficio_riesgo":2,"distancia_liquidacion_pct":9.5477}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0-UyfOT86tfPjBKelSpnI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates liquidation price, PnL at stop-loss/take-profit, reward/risk ratio, notional value, and position sizing for perpetual futures with isolated margin.","exampleAgentPrompt":"I'm going long on BTC at $60,000 with 10x leverage and $100 margin, stop-loss at $57,000 and take-profit at $66,000 — can you calculate my liquidation price, PnL at each level, and reward/risk ratio using isolated margin?","exampleUseCases":[{"title":"Position sizing for fixed dollar risk","prompt":"I want to go long ETH at $3,200 with 20x leverage and I only want to risk $75 if it hits my stop at $3,050 — how big should my position be and what's my liquidation price?"},{"title":"Reward-to-risk check before entering trade","prompt":"I'm considering a short on SOL at $150 with 5x leverage, $200 margin, stop-loss at $165 and take-profit at $120 — what's my reward/risk ratio and how far is liquidation?"},{"title":"Liquidation safety check at high leverage","prompt":"If I open a long on BTC at $65,000 with 50x leverage and $500 margin, how close is my liquidation price percentage-wise and what would my PnL be at a stop-loss of $64,200?"}],"resultDescription":"Returns a JSON object with: entry price, side, leverage, margin used, notional value, position size (quantity), liquidation price, liquidation distance %, PnL in USD and as % of margin at stop-loss and take-profit prices, reward/risk ratio, and a disclaimer note about exchange rounding differences.","failureModes":["Missing required fields (entrada or apalancamiento) returns a validation error","Leverage outside 1-200 range may produce invalid or unexpected results","Stop-loss or take-profit not provided means those PnL fields return null","Results are estimates only — actual liquidation varies by exchange due to rounding and funding","Invalid body type or malformed JSON returns a parsing error"],"whenToPreferThis":"Use this endpoint when you need rapid, structured perpetual futures math for isolated margin positions — especially when you want all key metrics (liquidation, PnL at SL/TP, reward/risk, position sizing) in a single call. Prefer it over manual calculations or generic trading tools when building trading assistants, risk dashboards, or position sizing bots that need programmatic access to derivative trade analytics without connecting to an exchange.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:40:53.208Z","isFirstParty":false,"canonicalSlug":"vextorium-perpetual-futures-calculator-isolated-margin-fdade2ab"}