# Halowerk Slippage Cost Calculator

> Halowerk Slippage Cost 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 signed slippage cost for a trade given caller-supplied prices, quantity, direction, and FX rate — positive means adverse execution, negative means favorable.

## Facts

- Endpoint: POST https://handel.halowerk.com/v1/rechner/slippage?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-slippage-cost-calculator-4205ccdd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RZKZxiKS8U6uJXYWbbaj2

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-slippage-cost-calculator-4205ccdd -d '<json body>'
```

Example prompt: Calculate the slippage cost for a buy order (direction +1) of 500 units where the requested price was 1.2345 and the executed price was 1.2360, with a quote-to-account conversion rate of 0.85.

## When to prefer this

Use this endpoint when you need a deterministic, auditable computation of signed slippage cost from caller-supplied trade data — especially in post-trade reporting, execution quality analytics, or algorithmic trading pipelines. It is not a data feed and does not fetch live prices; prefer it when you already have both the requested and executed prices and need the signed cost figure in account currency.

## Known failure modes

- Missing required fields (quantity, direction, executed_price, requested_price, quote_to_account) returns a validation error
- Values outside allowed range (e.g. price or quantity exceeding 1e12 or below 1e-12) are rejected
- Direction not in enum [-1, 1] causes a schema validation failure
- Payment not provided or insufficient USDC triggers an HTTP 402 response

## How this service works

Signierte Slippage-Kosten. Positiv bedeutet nachteilige Ausführung, negativ vorteilhafte Ausführung; Richtung ist vom Aufrufer. Alle Zahlen, Kurse und Vorgaben liefert der Aufrufer. Keine eigenen Kursdaten, kein Brokerzugriff, keine Ausführung. Rechenwerkzeug, keine Anlageberatung, keine Empfehlung.

## Output

A signed numeric slippage cost in account currency. A positive value indicates the execution was adverse (worse than requested), a negative value indicates a favorable execution. All arithmetic is performed using the caller-supplied prices, quantity, direction, and FX conversion rate — no market data or brokerage access is involved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "quantity": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "direction": {
   "enum": [
    -1,
    1
   ],
   "type": "integer"
  },
  "executed_price": {
   "type": "number",
   "maximum": 1000000000000,
   "minimum": 1e-12
  },
  "requested_price": {
   "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-slippage-cost-calculator-4205ccdd/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)
