GithubHelp home page GithubHelp logo

rcy222 / stocks-app-py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prof-rossetti/stocks-app-starter-py

0.0 1.0 0.0 11 KB

a skeleton example Stock Recommendation App to help students get started with project development. the "solution-latest-price" branch contains an example partial solution.

Home Page: https://github.com/prof-rossetti/nyu-info-2335-201805/blob/master/projects/stocks-app/project.md

License: Other

Python 100.00%

stocks-app-py's Introduction

Stock Recommendation App

A command-line Python application which processes user inputs and stock market data from the AlphaVantage API to provide stock purchase recommendations.

Installation

First, "fork" this upstream repository under your own control.

Then download your forked version of this repository using the GitHub.com online interface or the Git command-line interface. If you are using command-line Git, you can download it by "cloning" it:

git clone https://github.com/YOUR_USERNAME/stocks-app-py.git

After downloading your forked repository, navigate into its root directory:

cd stocks-app-py/

NOTE: all commands in this document assume you are running them from this root directory.

Install package dependencies using one of the following commands, depending on how you have installed Python and how you are managing packages:

# Pipenv on Mac or Windows:
pipenv install -r requirements.txt

# Homebrew-installed Python 3.x on Mac OS:
pip3 install -r requirements.txt

# All others:
pip install -r requirements.txt

Setup

Obtain an AlphaVantage API Key, which the app will supply when issuing requests to the API.

To prevent your secret API Key from being tracked in version control, the application looks for an environment variable named ALPHAVANTAGE_API_KEY. To set this environment variable, create a new file in this directory called ".env" and place inside the following contents:

ALPHAVANTAGE_API_KEY="abc123" # use your own API Key instead of "abc123"

Usage

If you are using Pipenv, enter a new virtual environment (pipenv shell) before running any of the commands below.

Run the recommendation script:

# Homebrew-installed Python 3.x on Mac OS, not using Pipenv:
python app/robo_adviser.py

# All others, including Pipenv on Mac or Windows:
python app/robo_adviser.py

stocks-app-py's People

Contributors

s2t2 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.