This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from alpha_vantage.timeseries import TimeSeries | |
| import threading | |
| import os | |
| # I use an environment vairable to get my key, | |
| # you can also just hardcode your key in the code to test this | |
| KEY = os.path.expandvars("$ALPHA_VANTAGE_HIGHER_KEY") | |
| ts = TimeSeries(key=KEY, output_format='pandas') | |
| # 10 tickers from the NASDAQ-100 | |
| tickers = ['ATVI','ADBE','AMD','ALXN','ALGN', 'GOOG', 'AMZN', 'AAL', 'ADI', 'AMAT'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from alpha_vantage.timeseries import TimeSeries | |
| # Your key here | |
| key = 'yourkeyhere' | |
| ts = TimeSeries(key) | |
| aapl, meta = ts.get_daily(symbol='AAPL') | |
| print(aapl['2019-09-12']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| On your terminal run: | |
| pip install alpha_vantage | |
| This also uses the pandas dataframe, and matplotlib, commonly used python packages | |
| pip install pandas | |
| pip install matplotlib | |
| For the develop version run: | |
| pip install git+https://github.com/RomelTorres/alpha_vantage.git@develop |
NewerOlder