A simple script to download stock data from alphavantage.co. Specifically it is setup to download the NASDAQ top 500.
Dependencies:
pip3 install numpy
pip3 install pandas
pip3 install urllib2
pip3 install numpy
Get a free API key from AlphaVantage
export the API key as an environmental variable. I recommend just adding it to your bashrc so it is always available.
echo "export ALPHA_VANTAGE_KEY=<Your API Key Here>" >> ~/.bashrc
#Should look somthing like "export ALPHA_VANTAGE_KEY=AHKDSFJHUDFDJD"
source ~/.bashrc
You are now ready to run!
python download_nasdaq_data.py