This is a simple application for watching a stock quote in real time. Scala, Play, and Akka-stream are used to implement this application and sbt helps to easily run my program. Yahoo Finance API is used to feed real time stock prices. http://financequotes-api.com
-
Download the template:
git clone [email protected]:ychoi27/play-streaming-stock-scala.git
Or, if you don't have git installed, download and unzip the files manually from here.
-
To run your program, in SBT:
cd play-streaming-stock-scala sbt run
-
Interact with UI:
Go to http://localhost:9000/
It has a really simple ui. A user can add symbol with the input text field and the add button. Once a user click the button, the stock quote card will be added. To delete the card, just click the Remove button.
Finally, the real time data is available during trading hours.