{"uid":"cap_dmZLvPTBTjD2T5Hu36YG_","slug":"vextorium-pnl-calculator-leveraged-trades-78629b7b","name":"Vextorium PnL Calculator (Leveraged Trades)","description":"Trade result: gross and net profit or loss after entry/exit fees and funding, return on margin, price change, break-even price and notional. Long or short, with leverage.","url":"https://api.vextorium.com/calculadora-pnl-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"dias":{"type":"number"},"lado":{"enum":["long","short"],"type":"string"},"salida":{"type":"number"},"entrada":{"type":"number"},"cantidad":{"type":"number"},"comision_pct":{"type":"number"},"apalancamiento":{"type":"number"},"funding_pct_dia":{"type":"number"}}},"responseSchema":{"type":"json","example":{"lado":"long","margen":1200,"pnl_neto":293.85,"pnl_bruto":300,"comisiones":6.15,"funding_pagado":0,"nocional_entrada":6000,"variacion_precio_pct":5,"precio_equilibrio_aprox":60060,"rentabilidad_sobre_margen_pct":24.488}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2Xp2SmX0-lqBbN4azsV9A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates gross and net profit/loss, return on margin, break-even price, and notional for a leveraged long or short trade after entry/exit fees and funding costs.","exampleAgentPrompt":"Calculate my net PnL for a long trade: I entered at 60000 and exited at 63000 with a position size of 0.1 BTC, 5x leverage, 0.1% commission each way, and held for 3 days with a 0.01% daily funding rate.","exampleUseCases":[{"title":"Crypto futures trade PnL review","prompt":"I opened a long on ETH futures at $2000, closed at $2100, with a quantity of 3 ETH, 10x leverage, 0.05% commission, and I held for 5 days with a 0.005% daily funding rate — what's my net profit, break-even price, and return on margin?"},{"title":"Short trade loss assessment","prompt":"I shorted BTC at 65000 and it went up to 67000 before I closed, position size was 0.5 BTC, 3x leverage, 0.1% commission each way, no funding — how much did I lose net and what was my return on margin?"},{"title":"Break-even price for leveraged long","prompt":"If I go long on a token at an entry price of 1.50 with a quantity of 10000, 20x leverage, and a 0.08% commission, what's my break-even price and total notional?"}],"resultDescription":"Returns a JSON object with: trade side (long/short), margin used, gross PnL, net PnL, total commissions, funding paid, notional value at entry, price change percentage, approximate break-even price, and return on margin percentage.","failureModes":["Missing required fields (entrada, salida, cantidad) returns a validation error","Invalid enum value for 'lado' (must be 'long' or 'short') causes request failure","Zero or negative leverage may produce calculation errors or division by zero","Extremely large leverage values may produce unrealistic results without warning","Negative funding or commission values may not be validated and could yield unexpected outputs"],"whenToPreferThis":"Use this endpoint when you need a precise, fee-aware PnL calculation for a leveraged long or short trade, including commission and funding cost deductions. Ideal for post-trade analysis, pre-trade scenario planning, or building trading dashboards. Prefer this over generic calculators when you need break-even price and return-on-margin alongside net profit in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:37:14.048Z","isFirstParty":false,"canonicalSlug":"vextorium-pnl-calculator-leveraged-trades-78629b7b"}