# Stop-Loss Price from Percent

> Stop-Loss Price from Percent 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 a stop-loss price given an entry price, a percentage risk, and trade side (long/short) using local deterministic math.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/stop-loss-pct
- 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/stop-loss-price-from-percent-34165244
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mkLuGMsTJh0CmiNGAZuMI

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 stop-loss-price-from-percent-34165244 -d '<json body>'
```

Example prompt: I'm entering a long trade at 48500 with a 2% stop-loss rule — what's my actual stop-loss price?

## When to prefer this

Use this endpoint when you need a fast, deterministic, serverless computation of a stop-loss price from a percentage risk rule without requiring live market data, API keys, or any external dependencies. Prefer it over manual calculation in automated trading bots or agent workflows where consistency and auditability matter. It is ideal for pre-order risk checks or populating stop fields in order management systems.

## Known failure modes

- Missing required field (entry, pct, or side) returns a validation error
- Invalid side value (not long/short or equivalent) may return an error or unexpected result
- Negative or zero entry price may produce nonsensical output
- Percent value of 0 returns the entry price as the stop-loss
- Extremely large percent values may produce prices below zero for longs — caller must validate

## How this service works

Stop-loss price from entry and stop percent move. Call when placing SL levels from percent risk rules. Returns stop-loss price 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 computed stop-loss price based on the provided entry price, stop percent, and trade side (long/short). No external data sources or live feeds are used; the result is a pure arithmetic calculation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pct": {
   "type": "number",
   "description": "Input field: pct."
  },
  "side": {
   "type": "string",
   "description": "Input field: side."
  },
  "entry": {
   "type": "integer",
   "description": "Input field: entry."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pct": 0.02,
  "side": "long",
  "entry": 100,
  "schema": "delx/util-stop-loss-pct/v1",
  "stop_loss": 98
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stop-loss-price-from-percent-34165244/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)
