# Delx Commerce — Trading Expectancy Calculator

> Delx Commerce — Trading Expectancy 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).

Computes the statistical expectancy of a trading strategy given a list of profit/loss values

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/expectancy?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-trading-expectancy-calculator-248fd7c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aho6Es0dxDUl7O1Va3Rwk

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-trading-expectancy-calculator-248fd7c7 -d '<json body>'
```

Example prompt: Calculate the trading expectancy for this list of PnL values: [3.2, -1.5, 4.0, -0.8, 5.1] — I want to know the average expected return per trade.

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.001 USDC) computation of trading strategy expectancy from a raw list of PnL values, without requiring account signup. Prefer over custom implementations when you want a pay-per-result model with verifiable delivery on Base or Solana via the x402 payment protocol.

## Known failure modes

- Empty or missing 'pnls' array returns an error
- Non-numeric values in the pnls array may cause a computation failure
- Payment not confirmed (x402 flow incomplete) results in 402 response
- Malformed request body returns a 400 error

## 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: 'expectancy' (a float representing the average expected profit/loss per trade, e.g. 2.6), 'n' (number of trades analyzed), and 'schema' (version identifier 'delx/util-expectancy/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pnls": {
   "type": "array",
   "description": "Input field: pnls."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 5,
  "schema": "delx/util-expectancy/v1",
  "expectancy": 2.6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-trading-expectancy-calculator-248fd7c7/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)
