# Delx Commerce — Stop Loss Price Calculator

> Delx Commerce — Stop Loss Price Calculator 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 stop-loss price for a trading position given an entry price, position side, and stop-loss percentage

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/stop-loss-pct?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-stop-loss-price-calculator-41b7aa3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ksmWSURU3e73JoyMuzj6u

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-stop-loss-price-calculator-41b7aa3e -d '<json body>'
```

Example prompt: I entered a long trade at 100 and want a 2% stop loss — what price should I set my stop loss at?

## When to prefer this

Use this endpoint when an AI trading agent needs a fast, verifiable, pay-per-call computation of stop-loss price levels without needing to implement the arithmetic itself. It is ideal for agents managing trade risk programmatically, especially when auditability and exact pricing ($0.001 USDC) matter. Prefer it over general-purpose math tools when you want a finance-domain-specific, schema-versioned result that can be verified downstream.

## Known failure modes

- Missing required field (pct, side, or entry) returns a validation error
- Invalid side value (not 'long' or 'short') may cause incorrect calculation or error
- Non-positive entry price or negative percentage may produce nonsensical results
- Payment failure via x402 protocol blocks the response

## 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 with the computed stop_loss price, along with an echo of the input parameters (pct, side, entry) and a schema identifier (delx/util-stop-loss-pct/v1). For example, a 2% stop on a long at 100 returns a stop_loss of 98.

## 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/delx-commerce-stop-loss-price-calculator-41b7aa3e/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)
