{"uid":"cap_Y2seiQ71Or_7qJqn84HZA","slug":"weighted-average-entry-price-calculator-e8fb9cfb","name":"Weighted Average Entry Price Calculator","description":"Gewichteter Durchschnittskurs.  Alle Zahlen, Kurse und Vorgaben liefert der Aufrufer. Keine eigenen Kursdaten, kein Brokerzugriff, keine Ausführung. Rechenwerkzeug, keine Anlageberatung, keine Empfehlung.","url":"https://handel.halowerk.com/v1/rechner/average-entry?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lSdmivThCiW4Kd_KrTxqZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the volume-weighted average entry price (VWAP) from a list of trade fills, each specified by price and quantity.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Scaling into a position across fills","prompt":"I scaled into a crypto position in four buys: 0.5 BTC at $61,200, 0.3 BTC at $59,800, 0.8 BTC at $58,500, and 0.4 BTC at $60,100. What is my average entry price?"},{"title":"Calculating stock cost basis after partial fills","prompt":"My broker split my order into three partial fills: 300 shares at $15.20, 700 shares at $15.35, and 500 shares at $15.28. What is my blended average price per share?"},{"title":"Options or futures average entry across legs","prompt":"I legged into a futures position: 2 contracts at $4,210, 3 contracts at $4,195, and 1 contract at $4,220. Can you calculate my volume-weighted average entry?"}],"resultDescription":"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.","failureModes":["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)"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:48:34.335Z","isFirstParty":false,"canonicalSlug":"weighted-average-entry-price-calculator-e8fb9cfb"}