This is a command-line application which allows users to specify a stock about which to gain relevant data, a buy recommendation based on user risk preferences, and stock price data visualization.
- Anaconda 3.7
- Python 3.7
- Pip
The following Python packages are required to run this program:
- requests
- json
- datetime
- csv
- os
- dotenv
- matplotlib
You must obtain an AlphaVantage API Key to run this program.
- First, clone or download this repository onto your computer.
git clone https://github.com/megc1/robo-advisor-project
cd robo-advisor-project
- Create a .env file
touch .env
- Within your .env file, add the following code, replacing "SECURE_KEY" with your API Key:
ALPHAVANTAGE_API_KEY='SECURE_KEY'
- On your terminal:
i) cd ~/Desktop/robo-advisor-project (if you select a different name of your folder, use that in place of "robo-advisor-project")
ii) cd app
iii) conda activate name-of-virtual-environment (enter the name of the virtual environment you created instead of name-of- virtual-environment)
iv) python robo_advisor.py
- Follow the prompts presented on the terminal. Your data will be written to a csv file.
Install pytest in your virtual environment:
pip install pytest
This program can be tested using the pytest command in the command line:
pytest
It is recommended to deploy the project to a continuous integration service, such as Travis CI for continuous automated testing as further modifications are made to the code.
This product is licensed under the MIT License. For more details, see LICENSE.md