Skip to content

haydarevren/stock-analysis-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

99f65fa · Dec 3, 2021

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask on Heroku

stockanalysis_animation

This code grabs stock data from the alphavantage dataset and puts it into a pandas dataframe to be plotted via Bokeh embedding. Flask is used to tie the code to html and the app is deployed via Heroku. You can view my completed Heroku app here. The app takes ticker, year, and various price metrics as inputs and outputs a time-series plot.

The repository contains a basic template for a Flask configuration that will work on Heroku.

Price plots: Opening, Highest, Lowest, Adjusted closing

Analysis plots: Daily Returns, Monthly Returns, Yearly Returns, Annualized Volatility, Daily 12-1 Price Momentum Signal

Installation and Usage (for local use)

  • Git clone the existing template repository.
  • Procfile, requirements.txt, conda-requirements.txt, and runtime.txt contain some default settings.
  • Install Flask $ pip install flask
  • Install virtualenv to manage dependencies : $ pip install virtualenv pip install -r requirements.txt
  • To launch the app: python app.py
  • Once the Flask app is running, navigate to the localhost link provided: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published