Skip to content

A self-learning project that using angular 4 as a front-end to monitor the stocks trading info

License

Notifications You must be signed in to change notification settings

jefftham/stocks-monitor

Repository files navigation

stocks-monitor

A self-learning project that using Angular 4 as a front-end to monitor the stocks trading info. Nodejs is used to build HTTPS back-end server. Firebase as database server. This project included front-end UI to allow users to add their own stocks and monitor the stocks performance, and the back-end will send out nortificatons throught Email and/or SMS (Text Message) to alert users about their stocks movement. In addition, several analysises will be running daily to reveal performance and movement of stocks in the market.

Production Server - a private repo

this demo

Features

  • Authenticate by Google firebase SDK.
  • Allow users login with Facebook, Google or Email account.
  • Each user contains his own list of stocks.
  • Front-end UI produced by Angular 4 that allow users control their own stock list and settings.
  • Data transmit throught HTTPS protocol.
  • The info of the stocks keep update every minute.
  • Auto calculate Profit and Loss for purchased stocks.
  • Auto set min price and max price for each stock.
  • Auto calculate SMA & EMA and use these as a signal for stock investment.
  • A scheduler run every minute (during the market trading period) to check the latest stock price and send out notification.
  • A daily stocks summary send out at the morning to notify users for the stock last closing price and its performance.
  • Notification can be sent throught Email and/or Text message.
  • Mobile UI supported.
  • A daily scheduler to analyze most of the stocks in the market and disclose their one year performance and movement.
  • Display US Sector Performance (realtime & historical)

Stocks API

Alpha Vantage

Front-End (Angular 4 + PrimeNG)

Contain several main component. header, footer, authenticaton, stock-list.component & growth-movement.component.

stock-list.component

Contain user's purchased stocks, favorite stocks, and user config & preferences.

growth-movement.component

Contain most of the stocks in the market and its analyzed performance.

authentication

stock-list.component is protected by authGuard. Only authenticated user can access its only list in firebase.

Back-End ( Nodejs + Firebase)

Several schedulers will run every weekdays during the stock market trading hours to check the users' stocks position and send SMS and/or EMAIL to users in accordingly.

A scheduler will run every mid-night, it analyzes most of the stocks in the market and update it to the database, so growth-movement.component always display the latest analysis.

Installation in Linux

sudo apt-get install -y git

cd stocks-monitor

bash setup.sh

Installation in windows

npm install

Build

npm run build

Start

npm run start

Development in windows

npm run proxy

Debug in windows

npm run wdebug

About

A self-learning project that using angular 4 as a front-end to monitor the stocks trading info

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages