# Long Liquidation Price Calculator

> Long 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).

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

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/liq-price-long
- 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/long-liquidation-price-calculator-531f6f9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6DKD-7D8b7vcEs_Qzpsy9

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 long-liquidation-price-calculator-531f6f9e -d '<json body>'
```

Example prompt: What's the liquidation price for a long I'm entering 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, locally-computed long liquidation price estimate without needing live market data, API keys, or on-chain RPC calls — ideal for advisory risk banners in trading UIs, agent-driven risk checks before opening leveraged long positions, or any scenario where a quick math-based liq price estimate suffices and latency or cost must be minimized

## Known failure modes

- Missing required fields (entry, leverage, or mmr) returns validation error
- Invalid types (e.g. non-numeric mmr) cause schema rejection
- Leverage of 1 or less may produce nonsensical or infinite liquidation prices
- Extremely high leverage values may yield liquidation prices very close to entry
- Payment failure via x402 protocol prevents endpoint execution

## How this service works

Approximate long liquidation price from entry, leverage, and maintenance. Call when risk banners for leveraged long positions (advisory model). Returns liq price estimate for long 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

A deterministic JSON response containing the estimated liquidation price for the long position, computed locally from the supplied entry price, leverage multiplier, and maintenance margin rate — no live market data or external feeds used

## 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-long/v1",
  "leverage": 10,
  "liq_price": 90.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/long-liquidation-price-calculator-531f6f9e/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)
