Stock Average Calculator API
POST
https://api.findutils.com/api/tools/stock-average-calculator/execute 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.
Request body
application/json-
transactions
array required
Buys as { shares, price }. 1-500 items; both values must be > 0.
-
current_price
number optional
Current market price per share. Optional.
Example arguments
Verified{
"transactions": [
{
"shares": 10,
"price": 100
},
{
"shares": 15,
"price": 85
}
],
"current_price": 90
} 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.
- Calorie Calculator Work out how many calories to eat per day to lose, maintain, or gain weight.
- Carbon Footprint Calculator Estimate an annual personal carbon footprint in tonnes of CO2 from home energy, transportation, and lifestyle, with a per-category…
- 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.