roshcheeku commited on
Commit
71e3d97
·
verified ·
1 Parent(s): 0d8359a

Create dashboard.html

Browse files
Files changed (1) hide show
  1. templates/dashboard.html +27 -0
templates/dashboard.html ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Stock Dashboard</title>
6
+ </head>
7
+ <body>
8
+ <h1>Multi-Stock Dashboard</h1>
9
+ <table border="1">
10
+ <tr>
11
+ <th>Symbol</th>
12
+ <th>Current Price</th>
13
+ <th>Change</th>
14
+ <th>Change (%)</th>
15
+ </tr>
16
+ {% for symbol, data in stock_data.items() %}
17
+ <tr>
18
+ <td>{{ symbol }}</td>
19
+ <td>${{ data.current_price }}</td>
20
+ <td>${{ data.change }}</td>
21
+ <td>{{ data.change_percent | round(2) }}%</td>
22
+ </tr>
23
+ {% endfor %}
24
+ </table>
25
+ <a href="/">Back</a>
26
+ </body>
27
+ </html>