Investment APIWeb Calculator UI

Free Stock Average Price API (2026)

Pass each purchase as sharesxprice. Optionally pass the current price for the profit or loss, and a target average for the number of shares to buy at that price (rounded up to a whole share).

Interactive API Playground & Live Test

GET/api/v1/stock-average

Query Parameters

Purchases as sharesxprice, comma-separated (up to 10)

Current market price per share in ₹; 0 skips profit/loss and the plan

Target average price in ₹; 0 skips the plan

curl -X GET "https://fincalculator.in/api/v1/stock-average?lots=100x500%2C100x400&currentPrice=0&target=0" \
  -H "Accept: application/json"
Live JSON Response (HTTP 200 OK)
Click "Execute Live API Request" below...

Request Parameters Schema

ParameterTypeRequiredDescription / Notes
lotsstringRequiredPurchases as sharesxprice, comma-separated (up to 10)
currentPricenumberOptionalCurrent market price per share in ₹; 0 skips profit/loss and the plan
targetnumberOptionalTarget average price in ₹; 0 skips the plan

Frequently Asked Questions (FAQs)

Is the Free Stock Average Price API free to use in production apps?
Yes! All FinCalculator REST APIs are completely free, zero-auth, open-CORS, and edge-cached for high performance across global web and mobile applications.
What is the rate limit for /api/v1/stock-average?
Endpoints are cached at the edge for 24 hours. There are no restrictive rate limits for standard web traffic and mobile applications.