# Trade Expectancy Calculator

> Trade Expectancy Calculator is a paid API for AI agents from handel.halowerk.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Computes the arithmetic mean (expected value per trade) from a supplied list of net trade P&L figures.

## Facts

- Endpoint: POST https://handel.halowerk.com/v1/rechner/expectancy?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trade-expectancy-calculator-635efb3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9w7YnkecS92pV5hi9ZTky

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 trade-expectancy-calculator-635efb3a -d '<json body>'
```

Example prompt: Calculate the arithmetic expectancy per trade for my last 20 trades — here are the net P&L values in dollars: [120, -45, 300, -80, 55, -200, 430, -10, 75, 90, -130, 210, -60, 180, -95, 310, -25, 140, -70, 250].

## When to prefer this

Use this endpoint when you need a fast, deterministic arithmetic mean of a known list of trade P&L values — especially when you already hold the data locally and want a stateless computation without any broker connection, market data feed, or advisory output. Prefer it over general-purpose statistics libraries when you need a paid, auditable API call for expectancy computation within an automated trading analytics workflow.

## Known failure modes

- Empty array or missing pnl_cash field returns a validation error
- Individual values exceeding ±1,000,000,000,000 are rejected
- Array exceeding 5000 items is rejected
- Non-numeric values in the array cause a type validation error
- Payment failure via x402 prevents request from being processed

## How this service works

Arithmetischer Erwartungswert je Trade. Stichprobenmittel gelieferter Nettoergebnisse, keine Erwartungsprognose. Alle Zahlen, Kurse und Vorgaben liefert der Aufrufer. Keine eigenen Kursdaten, kein Brokerzugriff, keine Ausführung. Rechenwerkzeug, keine Anlageberatung, keine Empfehlung.

## Output

Returns the arithmetic sample mean (expectancy) computed from the supplied array of net trade P&L cash values — a single numeric figure representing the average net result per trade. No market data, broker access, or forward-looking forecast is produced.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pnl_cash": {
   "type": "array",
   "items": {
    "type": "number",
    "maximum": 1000000000000,
    "minimum": -1000000000000
   },
   "maxItems": 5000,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trade-expectancy-calculator-635efb3a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from handel.halowerk.com](https://www.zero.xyz/host/handel.halowerk.com/llms.txt)
