Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 434 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 434 Bytes

gainz

Calculates returns of equities available on AlphaVantage.

Installation

pip install gainz-jwf

Usage

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)