Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 915 Bytes
A dashboard of your favourite stocks updated real-time.
So you need a few modules:
npm install express ejs
The db.json file is basically what we would be getting from
with the following YSQL statement to pull stock quotes for TNB, Nestle, Telekom Malaysia, Maybank & Genting
select * from where symbol in ("TNABY.PK","4715.KL","4863.KL","MLYBY.PK","NSLYF.PK")
So we start off by parsing that db.json file however since markets are closed today, we are manually changing the stock prices by calling the following route:
name: Stock Name
price: Last Traded Realtime Price
change: Change in stock price
close: Closing price
open: Opening price