Calculates returns of equities available on AlphaVantage.
pip install gainz-jwf
You'll need to get your own API key from AlphaVantage here.
import gainz
apiKey = 'TXVAQ58GJA0KFLAC'
ticker = 'ivv'
startDate = dt.datetime(2017,8,31)
endDate = dt.datetime(2020,8,31)
gainz.totalReturn(startDate, endDate, ticker, apiKey)