Skip to content
A React/Flask application for displaying stock data fetched from IEX (EDIT: this no longer works due to the IEX API being deprecated)
JavaScript Python HTML CSS Dockerfile Makefile Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
docs
nginx
screenshots
ui
.editorconfig
.gitignore
LICENSE
Makefile
README.md
docker-compose-prod.yml
docker-compose.yml
env.sample

README.md

stockpal

An application that displays stock data from the IEX API and allows to perform analysis on the stock charts. This application was originally made for the Programmatic Content Management course at Tampere University of Technology. See it live in action at http://koodi.me.

Features

  • Browse IEX gainer stocks
  • Browse all available stocks and search from them
  • View stock information, news and chart
  • Perform moving average analysis on stocks
  • Save stocks to own list

Running locally

First, create an environment variable file from the sample file env.sample:

$ cp env.sample .env
$ vim .env
{EDIT FILE}

The GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET are not mandatory, but they are required for login services which are done via the Google OAuth2 API. For creating these for your local dev setup, navigate to https://console.developers.google.com/apis/dashboard, and:

  • create a new project
  • create credentials for that project
  • use the client ID and secret from the credentials in the values for GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET values in your .env file, respectively
  • allow http://localhost/login/google as an authorized redirect URI
  • Done!

Full instructions for Google Oauth2 available at https://developers.google.com/identity/protocols/OAuth2. Navigate to the project root directory and run make all.

Screenshots

All stocks

Searching from all stocks

Gainer stocks

Own stocks

Stock page

Stock chart

Stock chart with 150 day moving average applied

You can’t perform that action at this time.