# HALOWERK Linear Contract Margin Calculator

> HALOWERK Linear Contract Margin 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-21).

Computes required margin for linear futures/CFD contracts using notional value divided by leverage, with caller-supplied parameters only.

## Facts

- Endpoint: POST https://handel.halowerk.com/v1/rechner/margin?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-linear-contract-margin-calculator-57ca9963
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dZdJxMlvrfBAocPmBPqMy

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-linear-contract-margin-calculator-57ca9963 -d '<json body>'
```

Example prompt: Calculate the required margin for a linear contract: 2 lots, price of 48000, leverage 20x, contract size 1, and quote-to-account rate of 1.

## When to prefer this

Use this endpoint when you need a pure arithmetic margin calculation for linear contracts (notional/leverage) without any broker integration, live pricing, or account-specific margin tier logic. Ideal for pre-trade sizing checks, backtesting pipelines, or agent workflows that already have all market data and want a stateless, deterministic margin figure. Not suitable when broker-specific margin schedules, tiered margin, or live price feeds are required.

## Known failure modes

- Missing required parameters (lots, price, leverage, contract_size) returns validation error
- Values outside allowed range (e.g. leverage below 1e-12 or above 1e12) rejected
- quote_to_account not provided may cause result in quote currency only
- Zero or negative effective leverage causes division error
- Non-numeric input values rejected with schema validation error

## How this service works

Margin-Referenz für lineare Kontrakte. Notional / Hebel; keine Broker-Marginstaffeln. 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 margin requirement for the linear contract position, expressed as notional value divided by leverage, optionally converted to account currency via the caller-supplied quote_to_account rate. No live market data is fetched; all figures are purely derived from caller-supplied inputs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lots": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "price": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "leverage": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "contract_size": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "quote_to_account": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-linear-contract-margin-calculator-57ca9963/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)
