# Delx Commerce — Liquidation Price Calculator (Short Position)

> Delx Commerce — Liquidation Price Calculator (Short Position) is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Calculates the liquidation price for a short position in a leveraged trading scenario given entry price, leverage, and maintenance margin rate.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/liq-price-short?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-liquidation-price-calculator-short-position-285fe44c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6vhyvzEc7kMGKN2HMXuWS

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 delx-commerce-liquidation-price-calculator-short-position-285fe44c -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a fast, precise liquidation price calculation for a short position in a leveraged derivatives market. It is ideal for trading agents, risk management bots, or portfolio monitors that need to compute liq prices on demand without maintaining their own formula logic. Prefer this over general-purpose calculators when you need verifiable, pay-per-call pricing via x402 on Base or Solana with no signup overhead.

## Known failure modes

- Missing required fields (mmr, entry, leverage) returns a validation error
- Zero or negative leverage value may cause division errors or undefined behavior
- MMR value out of valid range (e.g. greater than 1) may return nonsensical results
- Non-numeric inputs for numeric fields return type errors
- Payment failure (insufficient USDC balance) returns HTTP 402 before computation occurs

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the computed liquidation price for the short position, along with an echo of the input parameters (mmr, entry, leverage) and a schema identifier string (e.g. 'delx/util-liq-price-short/v1'). The liquidation price is expressed as a number in the same units as the entry price.

## 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/delx-commerce-liquidation-price-calculator-short-position-285fe44c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
