# HALOWERK Lot Size Calculator

> HALOWERK Lot Size 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 correct trading lot size and monetary loss amount for a given trade based on account equity, risk percentage, stop distance, contract size, and quote-to-account currency conversion factor.

## Facts

- Endpoint: POST https://handel.halowerk.com/v1/rechner/lot-size?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-lot-size-calculator-2cb0ed40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JhB0gO6VVLewE4TZTAxW9

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-lot-size-calculator-2cb0ed40 -d '<json body>'
```

Example prompt: My trading account has $10,000 equity and I want to risk 1% per trade. The stop distance is 20 pips, the contract size is 100,000, and the quote-to-account currency conversion is 1.08 — what lot size should I trade?

## When to prefer this

Choose this endpoint when you need a precise, formula-based lot size calculation that incorporates a currency conversion factor and you want a deterministic computation rather than a spreadsheet or manual formula. It is ideal for multi-currency accounts or cross-currency instrument trading where the quote currency differs from the account currency. It does not provide market data, broker connectivity, or investment advice — use it purely as a calculation layer in a larger trading workflow.

## Known failure modes

- Missing required fields (equity, risk_pct, contract_size, stop_distance, quote_to_account) returns a validation error
- Zero or negative stop_distance or contract_size causes division-by-zero or validation rejection
- risk_pct above 100 or below 0 rejected by schema
- Extremely small values near minimum thresholds may produce very large lot sizes — caller must sanity-check output
- Payment not included or insufficient USDC balance returns HTTP 402

## How this service works

Lotgröße und Verlustbetrag. Lot = Kontostand × Risikoprozent / 100 / (Stop-Abstand × Kontraktgröße × Umrechnung). 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 lot size (number of lots to trade) and the corresponding monetary loss amount in account currency if the stop loss is triggered, derived purely from the supplied figures with no broker access or live market data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "equity": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "risk_pct": {
   "type": "number",
   "maximum": 100,
   "minimum": 0
  },
  "contract_size": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "stop_distance": {
   "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-lot-size-calculator-2cb0ed40/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)
