# Vextorium Perpetual Futures Calculator (Isolated Margin)

> Vextorium Perpetual Futures Calculator (Isolated Margin) is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-13).

Calculates liquidation price, PnL at stop-loss/take-profit, reward/risk ratio, notional value, and position sizing for perpetual futures with isolated margin.

## Facts

- Endpoint: POST https://api.vextorium.com/calculadora-perpetuo-pago?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-perpetual-futures-calculator-isolated-margin-fdade2ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_07CcJ6ptwjPuAqRqp7ieJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability vextorium-perpetual-futures-calculator-isolated-margin-fdade2ab -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
         ]
        },
     
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-perpetual-futures-calculator-isolated-margin-fdade2ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
