From Investopedia, "The compound annual growth rate (CAGR) is the mean annual growth rate of an investment over a specified period of time longer than one year."
To calculate the CAGR of a security, you would use the following calculation.
a = 'starting value'
b = 'current value'
x = 'number of years'
((b / a) ^ (1 / x)) - 1
Currently, I am trying to figure out a way to efficiently calculate the CAGR of a group of securities filtered by fundamental data, and sort by CAGR from high to low. After browsing through the API and help documents, I am unsure of where/how to successfully pull the value of a security on a date three years ago for the CAGR calculation. I am sure this is simply a matter of lack of Python knowledge, but any assistance would be greatly appreciated.
References:
http://www.investopedia.com/terms/c/cagr.asp
http://www.investopedia.com/calculator/cagr.aspx