Docs/Business Utils/GET /v1/cagr

GET /v1/cagrCAGR Calculator

Business Utils lf-business-utils

Works out the steady yearly growth rate that carries a starting value up to an ending value. Takes start_value, end_value, and a period in years or months. Returns cagr, cagr_percent, total_return, and annualized_return.

Query Parameters

ParameterTypeRequiredDescription
start_valuenumberYesStarting value
end_valuenumberYesEnding value
yearsnumberNoPeriod in years
monthsnumberNoPeriod in months

Response Schema

cagr (number): Compound annual growth rate
cagr_percent (number): CAGR as percent
total_return (number): Total return
annualized_return (number): Annualized return

cURL Example

curl 'https://lf-business-utils.laminarforge.dev/v1/cagr?start_value=<start_value>' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/cagr'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'start_value': '<start_value>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())