# Agent Quant Liquidation Price Calculator

> Agent Quant Liquidation Price Calculator is a paid API for AI agents from agent-quant.annushka1190.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes a rough liquidation price for a leveraged trading position given entry price, leverage, and position side.

## Facts

- Endpoint: POST https://agent-quant.annushka1190.workers.dev/v1/liq-price
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-quant-liquidation-price-calculator-b8c3af11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g6A-hev9Fj9PshFoxODji

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 agent-quant-liquidation-price-calculator-b8c3af11 -d '<json body>'
```

Example prompt: What's my rough liquidation price if I open a 10x long on BTC at an entry price of $65,000 with $1,000 in margin?

## When to prefer this

Choose this endpoint when you need a fast, cheap, formula-based liquidation price estimate without requiring any API keys or live market data feeds. Ideal for AI trading agents doing pre-trade risk checks, position sizing workflows, or educational simulations where a rough liquidation level is sufficient and real-time exchange data is not necessary.

## Known failure modes

- Missing required body fields (entry price, leverage, side) returns a validation error
- Leverage value of zero or negative causes division error
- Invalid position type (not long/short) may return error or unexpected result
- Payment not included or insufficient USDC via x402 results in 402 Payment Required response

## How this service works

Pure quant math for AI trading agents: percent change, position sizing, rough liquidation price, DCA schedule, APR/APY. No market data feeds, no API keys. Pay-per-request USDC via x402 on Base and Solana.

## Output

Returns a JSON object with ok:true and a computed rough liquidation price for the specified leveraged position, based purely on mathematical formulas — no live market data involved.

## 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"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "const": "json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-quant-liquidation-price-calculator-b8c3af11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-quant.annushka1190.workers.dev](https://www.zero.xyz/host/agent-quant.annushka1190.workers.dev/llms.txt)
