Return the average cost per share (dollar cost averaging) across several buys, the total shares, total invested, break-even price, and, when a current price is given, the position value and unrealized profit or loss in money and percent.
This page documents the HTTP endpoint POST /api/tools/stock-average-calculator/execute. See the MCP reference →
Call it over REST
POST https://api.findutils.com/api/tools/stock-average-calculator/execute · no API keys · 60 requests/min per IP
Execute — verified arguments
curl -X POST https://api.findutils.com/api/tools/stock-average-calculator/execute \
-H "Content-Type: application/json" \
-d '{
"transactions": [
{
"shares": 10,
"price": 100
},
{
"shares": 15,
"price": 85
}
],
"current_price": 90
}' Parameter schema for this endpoint
curl https://api.findutils.com/api/tools/stock-average-calculator Input schema
| Argument | Type | Required | Description |
|---|---|---|---|
| transactions | array | yes | Buys as { shares, price }. 1-500 items; both values must be > 0. |
| current_price | number | no | Current market price per share. Optional. |
Example arguments (verified)
{
"transactions": [
{
"shares": 10,
"price": 100
},
{
"shares": 15,
"price": 85
}
],
"current_price": 90
} Also an MCP tool
Claude, Cursor, and any MCP client can call this tool as
findutils:stock_average_calculator after one connect command.
Connect once
claude mcp add findutils --transport http https://mcp.findutils.com/ More Calculators tools
Bmi Calculate
Compute Body Mass Index (BMI) with metric (kg/cm) or imperial (lb/in) units.
Body Fat Calculator
Estimate body fat percentage, fat mass, lean mass, BMI, and a body-composition category.
Carbon Footprint Calculator
Estimate an annual personal carbon footprint in tonnes of CO2 from home energy, transportation, and lifestyle, with a per-category breakdown
Chmod Calculate
Convert between numeric (755) and symbolic (rwxr-xr-x) Unix file permissions.
Cloudflare Cost Calculate
Estimate monthly Cloudflare developer platform costs (Workers, D1, R2, KV, Durable Objects) under free or $5 Workers Paid plans.
Daily Habit Calculator
Calculate how a daily habit adds up over a week, a month (30 days), a year (365 days), or a custom date range: total units, total cost, and
Gcd Calculate
Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of two non-negative integers.
Llm Requirements Calculator
Estimate the VRAM, system RAM, and disk space needed to run an open-weight LLM locally, and which common GPUs and Macs it fits on.