Stock Average Calculator

Calculators REST API MCP

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

Interactive docs · OpenAPI 3.1 spec · All REST tools

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/
Open the MCP reference for Stock Average Calculator →

More Calculators tools