# Weighted Average Entry Price Calculator

> Weighted Average Entry Price 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 volume-weighted average entry price (VWAP) from a list of trade fills, each specified by price and quantity.

## Facts

- Endpoint: POST https://handel.halowerk.com/v1/rechner/average-entry?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/weighted-average-entry-price-calculator-e8fb9cfb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y2seiQ71Or_7qJqn84HZA

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 weighted-average-entry-price-calculator-e8fb9cfb -d '<json body>'
```

Example prompt: I entered a position in three fills: 100 shares at $42.50, 200 shares at $43.10, and 150 shares at $41.80 — what is my weighted average entry price?

## When to prefer this

Choose this endpoint when you need a pure, server-side computation of volume-weighted average entry price from raw fill data and want a reliable, stateless calculation without needing to implement the math yourself. Ideal for agents managing trading workflows that need cost basis figures after accumulating positions across multiple partial fills or scaled entries. Not suitable if you need live market data, broker connectivity, or any form of trade execution.

## Known failure modes

- Empty fills array rejected (minItems: 1 required)
- Fill with price or quantity of zero or below minimum (1e-12) rejected
- Fill with price or quantity above maximum (1e12) rejected
- More than 1000 fills in the array rejected (maxItems: 1000)
- Missing required 'price' or 'quantity' field in any fill object causes validation error
- Extra properties in fill objects rejected (additionalProperties: false)

## How this service works

Gewichteter Durchschnittskurs.  Alle Zahlen, Kurse und Vorgaben liefert der Aufrufer. Keine eigenen Kursdaten, kein Brokerzugriff, keine Ausführung. Rechenwerkzeug, keine Anlageberatung, keine Empfehlung.

## Output

Returns the volume-weighted average price across all provided fills — computed as the sum of (price × quantity) for each fill divided by the total quantity. This is a pure numerical result representing the blended cost basis, with no market data, broker access, or investment advice included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fills": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "price",
     "quantity"
    ],
    "properties": {
     "price": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": 1e-12
     },
     "quantity": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": 1e-12
     }
    },
    "additionalProperties": false
   },
   "maxItems": 1000,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weighted-average-entry-price-calculator-e8fb9cfb/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)
