# Saylor Innovations Perpetual Futures Liquidation Price Calculator

> Saylor Innovations Perpetual Futures Liquidation Price Calculator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-02).

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.

## Facts

- Endpoint: GET https://saylorinnovations.com/api/perps/liquidation-price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-perpetual-futures-liquidation-price-calculator-5eb24af7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3stVg9guv_ShBgIiFfdgM

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 saylor-innovations-perpetual-futures-liquidation-price-calculator-5eb24af7
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## 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",
    "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",
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-perpetual-futures-liquidation-price-calculator-5eb24af7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
