# HALOWERK Break-Even Calculator (Linear Contracts)

> HALOWERK Break-Even Calculator (Linear Contracts) 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).

Calculates the break-even price for a linear futures/trading contract given entry price, position size, direction, swap costs, and fees — no live data, no brokerage, pure computation.

## Facts

- Endpoint: POST https://handel.halowerk.com/v1/rechner/break-even?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/halowerk-break-even-calculator-linear-contracts-9689667e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n03kBzVpHF7RIAKpaB5La

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 halowerk-break-even-calculator-linear-contracts-9689667e -d '<json body>'
```

Example prompt: I bought a long position in a linear contract at entry price 42000, with a quantity of 0.5, a swap cost of -15 USDC, an exit fee rate of 0.0006, and an entry fee of 12 USDC — what is my break-even price?

## When to prefer this

Use this endpoint when you need a pure, stateless break-even computation for a linear (non-inverse) derivatives contract and already hold all the numbers yourself — entry price, quantity, direction, swap costs, and fee rates. It is ideal for agent workflows that need to compute cost-adjusted exit thresholds without connecting to any broker, exchange, or live market data feed. Prefer it over building your own formula when swap costs (funding) must be factored in alongside percentage-based exit fees and fixed entry fees simultaneously.

## Known failure modes

- Missing required fields (entry, quantity, direction) return a validation error
- Values outside allowed min/max ranges (e.g. entry < 1e-12 or > 1e12) are rejected
- Invalid direction value (not 1 or -1) causes a schema validation error
- Nonsensical combinations (e.g. fees exceeding position value) may produce mathematically valid but economically extreme results without warning
- Payment failure via x402 protocol returns HTTP 402 before computation

## How this service works

Break-even-Kurs mit Kosten. Swap ist ein signierter Kostenbetrag; lineare Kontrakte. Alle Zahlen, Kurse und Vorgaben liefert der Aufrufer. Keine eigenen Kursdaten, kein Brokerzugriff, keine Ausführung. Rechenwerkzeug, keine Anlageberatung, keine Empfehlung.

## Output

Returns the computed break-even price as a number — the exact exit price at which the position's profit equals zero after accounting for entry price, quantity, trade direction, swap cost, exit fee rate, and entry fee cash. No market data is fetched; the result is a deterministic calculation based solely on the caller-supplied inputs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "entry": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "quantity": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "direction": {
   "enum": [
    -1,
    1
   ],
   "type": "integer"
  },
  "swap_cash": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": -1000000000000
  },
  "exit_fee_rate": {
   "type": "number",
   "maximum": 0.99,
   "minimum": 0
  },
  "entry_fee_cash": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-break-even-calculator-linear-contracts-9689667e/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)
