megc1 / robo-advisor-project

Robo Advisor project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robo Advisor

Build Status

About

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.

To get started:

Prerequisites:

  • Anaconda 3.7
  • Python 3.7
  • Pip

Package requirements:

The following Python packages are required to run this program:

  • requests
  • json
  • datetime
  • csv
  • os
  • dotenv
  • matplotlib

Setup:

Credentials:

You must obtain an AlphaVantage API Key to run this program.

Installation:

  1. First, clone or download this repository onto your computer.
git clone https://github.com/megc1/robo-advisor-project
cd robo-advisor-project
  1. Create a .env file
touch .env
  1. Within your .env file, add the following code, replacing "SECURE_KEY" with your API Key:
ALPHAVANTAGE_API_KEY='SECURE_KEY'

To run:

  1. 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
  1. Follow the prompts presented on the terminal. Your data will be written to a csv file.

To test

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.

License:

This product is licensed under the MIT License. For more details, see LICENSE.md

About

Robo Advisor project

License:MIT License


Languages

Language:Python 100.0%