Skip to content

Display stock price history for a selected stock symbol

Notifications You must be signed in to change notification settings

d-levin/stock-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock Info

Prerequisites

  1. JDK
  2. npm

Running the project

  1. Clone or download the repository
  2. cd resources
  3. ./init.sh (initializes and populates the database with stock data)
  4. cd ../backend
  5. ./gradlew clean build run (starts the backend services on port 9000)
  6. cd ../frontend
  7. npm install
  8. npm run startWithProxy (starts the Ember application with requests proxied to http://localhost:9000)
  9. Open the app in a browser at http://localhost:4200

Notes

The Yahoo Finance API is no longer active. Instead, this application uses https://quantprice.herokuapp.com/api/v1.1/.

The QuantPrice API does not seem to support many of the stock symbols in the database. These will not render graphs. One that works is AAPL (Apple Inc).

The QuantPrice API also limits the number of requests within a given period of time. It is likely that a request for historical data will error out if too many requests are made within a short period of time.


Future Improvements

  1. Process the response from https://quantprice.herokuapp.com/api/v1.1/ directly in the backend Java code rather than in the frontend JavaScript code
  2. Take advantage of Ember's services, serializers, and models to fetch data rather than using Ajax in the controllers
  3. Split the Stocks component into several smaller components and pass props and emit events to communicate between them. Suggestions: search-bar, data-table, pagination
  4. Add progress bars when APIs are loading

Bugs

  1. The candlestick chart is not fully responsive and will fall outside the modal component on smaller resolutions

About

Display stock price history for a selected stock symbol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published