Skip to content

About

Flask app to monitor stock information

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

stock-talk

This repository contains the code a Flask application that allows a user to add stock symbols and track them in the dashboard.

Endpoints

  • GET /register: Renders the register page
  • GET /login: Renders the login page
  • GET /search: Takes sym parameter and fetches stock symbols
  • GET /timeseries: Takes sym parameter and fetches timeseries stock values
  • GET /dashboard: Renders the dashboard page
  • POST /register: Creates a user in the database
  • POST /login: Creates a user session with existing user
  • POST /logout: Logs out a user session
  • POST /save: Takes a sym data parameter and saves it against a user
  • POST /remove: Takes a sym data parameter and deletes it from the database

Requirements

All the code is written in Python 3. The primary database is MongoDB. The dependencies can be installed by:

$ pip install -r requirements.txt

The stock market data is supplied by Alpha Vantage API. Before starting, get your API key and add it to the file stocktalk/config/dev.py.

Run the app

Activate the virtual environment.

$ source activate <venv>

The necessary development environment variables can be set by:

$ source dev.env

Once the environment is activated, run the app using:

$ flask run

A screenshot of the dashboard:

Screenshot of the dashboard

About

Flask app to monitor stock information

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages