# Delx Commerce — Liquidation Price Calculator (Long Position)

> Delx Commerce — Liquidation Price Calculator (Long 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 leveraged long position given entry price, leverage, and maintenance margin rate (MMR).

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/liq-price-long?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-long-position-d32897f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Uj-eB8b5tXvTdZ2ur_JSL

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-long-position-d32897f1 -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a fast, pay-per-call, no-signup computation of the liquidation price for a leveraged LONG futures or perpetual position. Prefer this over manual formula implementations when you need verifiable, schema-tagged results delivered via USDC micropayment (x402 on Base or Solana). Not suitable for short positions (use the corresponding short endpoint) or for positions with complex cross-margin calculations.

## Known failure modes

- Missing required fields (mmr, entry, leverage) result in a validation error
- Non-numeric or zero values for entry or leverage may produce undefined/error responses
- Leverage values at or below 1 may yield nonsensical liquidation prices
- Payment failure via x402 protocol returns a 402 response blocking the computation

## How this service works

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

## Output

Returns a JSON object containing the computed liquidation price for the long position (liq_price), along with the echoed input fields (mmr, entry, leverage) and a schema identifier (schema: 'delx/util-liq-price-long/v1').

## 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/delx-commerce-liquidation-price-calculator-long-position-d32897f1/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)
