# Short Liquidation Price Calculator

> Short Liquidation Price Calculator is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Computes the approximate liquidation price for a short leveraged position given entry price, leverage, and maintenance margin rate

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/liq-price-short
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/short-liquidation-price-calculator-07e1b3e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JzXxE8JYaB6vWBALluYQF

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 short-liquidation-price-calculator-07e1b3e4 -d '<json body>'
```

Example prompt: What's the liquidation price for my short position if I entered at $50000 with 10x leverage and a 0.5% maintenance margin rate?

## When to prefer this

Use this endpoint when you need a fast, deterministic, offline-style liquidation price estimate for a short position and do not want to call a live exchange API or require market data. Ideal for advisory risk banners, pre-trade checks, or portfolio dashboards where the math is straightforward and latency must be minimal. Prefer this over exchange APIs when you want no external dependencies, API keys, or RPC calls.

## Known failure modes

- Missing required fields (entry, leverage, or mmr) returns a validation error
- Zero or negative leverage values may produce invalid or undefined results
- Extremely high leverage values may produce liquidation prices close to or above entry, which could be flagged or clamped
- Payment failure over x402 protocol returns a 402 Payment Required response
- Malformed JSON body returns a 400 Bad Request

## How this service works

Approximate short liquidation price from entry, leverage, and maintenance. Call when risk banners for leveraged short positions (advisory model). Returns liq price estimate for short as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a deterministic JSON object containing the estimated liquidation price for a short position, computed locally from the provided entry price, leverage multiplier, and maintenance margin rate (MMR). No live market data or external feeds are used — the result is a pure mathematical calculation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mmr": {
   "type": "number",
   "description": "Input field: mmr."
  },
  "entry": {
   "type": "integer",
   "description": "Input field: entry."
  },
  "leverage": {
   "type": "integer",
   "description": "Input field: leverage."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mmr": 0.005,
  "entry": 100,
  "schema": "delx/util-liq-price-short/v1",
  "leverage": 10,
  "liq_price": 109.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/short-liquidation-price-calculator-07e1b3e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
