# Lot Size Rounding Calculator

> Lot Size Rounding 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).

Rounds a lot quantity to a broker's step size using floor, ceil, or nearest mode, and flags constraint violations without auto-correcting them.

## Facts

- Endpoint: POST https://handel.halowerk.com/v1/rechner/lot-round?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/lot-size-rounding-calculator-1f075645
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b-7EaIj8Mk-qYzZ4cEh4W

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 lot-size-rounding-calculator-1f075645 -d '<json body>'
```

Example prompt: I need to round 1.37 lots to the nearest broker step of 0.01, with a minimum of 0.01 and a maximum of 100 — use nearest rounding and tell me if any constraint is violated.

## When to prefer this

Use this endpoint when you need a pure, stateless lot-rounding computation that respects a broker's step increment and explicitly signals constraint violations without silently clamping values. Prefer it over general-purpose rounding utilities when broker-specific step semantics, minimum/maximum flagging (without auto-correction), and financial trading precision are required.

## Known failure modes

- Invalid step size (zero or negative) causes validation error
- Lots value outside allowed range (0 to 1e12) returns error
- Missing required fields returns schema validation error
- Step size larger than lots value may produce zero after floor rounding
- Constraint flags returned but caller must handle clamping logic themselves

## How this service works

Lotzahl auf Broker-Schrittweite runden. Kein automatisches Anheben auf Minimum oder Absenken auf Maximum; Überschreitung wird als Kennzeichen zurückgegeben. Alle Zahlen, Kurse und Vorgaben liefert der Aufrufer. Keine eigenen Kursdaten, kein Brokerzugriff, keine Ausführung. Rechenwerkzeug, keine Anlageberatung, keine Empfehlung.

## Output

Returns the rounded lot quantity aligned to the specified broker step size, along with flags indicating whether the result exceeds the provided minimum or maximum constraints. No automatic clamping is applied — violations are reported, not corrected.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lots": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 0
  },
  "mode": {
   "enum": [
    "floor",
    "ceil",
    "nearest"
   ],
   "type": "string"
  },
  "step": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "maximum": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "minimum": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lot-size-rounding-calculator-1f075645/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)
