# Max Loss at Stop

> Max Loss at Stop 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 maximum potential loss in dollars given a position size, entry price, and stop distance using deterministic local math.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/max-loss
- 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/max-loss-at-stop-f17e5ebe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5zYdUd6HpY5qPvurAl3hz

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 max-loss-at-stop-f17e5ebe -d '<json body>'
```

Example prompt: What's the maximum dollar loss if I enter 100 shares at 150 with a stop at 140?

## When to prefer this

Choose this endpoint when you need a fast, deterministic, offline calculation of maximum dollar loss for a trade given known size, entry, and stop values — particularly for pre-trade risk gating, kill-switch calibration, or position size validation. It requires no API keys, live market data, or external dependencies, making it reliable and auditable.

## Known failure modes

- Missing required fields (size, stop, or entry) returns validation error
- Non-integer inputs may cause schema rejection
- Payment failure or insufficient USDC balance blocks the call
- Stop price above entry for a long position may produce unexpected or negative loss values if not validated by caller

## How this service works

Max loss dollars for size and stop distance. Call when pre-trade loss caps and kill-switch thresholds. Returns max loss dollars 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 maximum loss in dollars computed from the provided size, entry price, and stop price, with no reliance on live market data or external feeds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "integer",
   "description": "Input field: size."
  },
  "stop": {
   "type": "integer",
   "description": "Input field: stop."
  },
  "entry": {
   "type": "integer",
   "description": "Input field: entry."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-max-loss/v1",
  "max_loss": 20
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/max-loss-at-stop-f17e5ebe/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)
