-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
302 lines (266 loc) · 9.72 KB
/
Copy pathindex.html
File metadata and controls
302 lines (266 loc) · 9.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stock Trading Platform - Java Project</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
text-align: center;
color: white;
margin-bottom: 40px;
}
.header h1 {
font-size: 3em;
margin-bottom: 10px;
}
.header p {
font-size: 1.2em;
opacity: 0.9;
}
.download-section {
background: rgba(255,255,255,0.95);
border-radius: 15px;
padding: 40px;
text-align: center;
margin-bottom: 30px;
box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.download-section h2 {
color: #667eea;
margin-bottom: 20px;
font-size: 2.2em;
}
.download-section p {
color: #666;
margin-bottom: 30px;
font-size: 1.1em;
}
.download-buttons {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}
.btn {
display: inline-flex;
align-items: center;
background: #667eea;
color: white;
padding: 15px 30px;
text-decoration: none;
border-radius: 8px;
font-size: 1.1em;
font-weight: bold;
transition: all 0.3s;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn:hover {
background: #5a67d8;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
.btn-github {
background: #24292e;
}
.btn-github:hover {
background: #1a1e22;
}
.btn-download {
background: #28a745;
}
.btn-download:hover {
background: #218838;
}
.btn i {
margin-right: 8px;
font-size: 1.2em;
}
.requirements {
background: rgba(255,255,255,0.1);
color: white;
padding: 15px;
border-radius: 8px;
margin-top: 20px;
}
.card {
background: white;
border-radius: 10px;
padding: 30px;
margin: 20px 0;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin: 30px 0;
}
.feature {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #667eea;
}
.feature h3 {
color: #667eea;
margin-bottom: 10px;
}
.tech-stack {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin: 20px 0;
}
.tech-tag {
background: #667eea;
color: white;
padding: 5px 15px;
border-radius: 20px;
font-size: 0.9em;
}
.code-sample {
background: #2d3748;
color: #e2e8f0;
padding: 20px;
border-radius: 8px;
overflow-x: auto;
font-family: 'Courier New', monospace;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>🚀 Stock Trading Platform</h1>
<p>Java-based Trading Simulation System with OOP & File I/O</p>
<p><strong>CodeAlpha Internship Project</strong></p>
</div>
<!-- Main Download Section -->
<div class="download-section">
<h2>⬇️ Download & Experience Stock Trading Platform</h2>
<p>This is a Java Desktop Application - Experience the full power of stock market simulation!</p>
<div class="download-buttons">
<a href="https://github.com/manishcoder92/CodeAlpha_StockTradingPlatformm" class="btn btn-github" target="_blank">
📂 View on GitHub
</a>
<a href="https://github.com/manishcoder92/CodeAlpha_StockTradingPlatformm/archive/refs/heads/main.zip" class="btn btn-download" target="_blank">
⬇️ Download ZIP
</a>
</div>
<div class="requirements">
💡 <strong>System Requirements:</strong> Java JDK 11+ | Windows/Mac/Linux | Any Java IDE
</div>
</div>
<!-- How to Run Section -->
<div class="card">
<h2>▶️ How to Run Stock Trading Platform</h2>
<div class="features">
<div class="feature">
<h3>1️⃣ Clone Repository</h3>
<p>Download the project from GitHub or clone using Git</p>
</div>
<div class="feature">
<h3>2️⃣ Open in IDE</h3>
<p>Import project in IntelliJ IDEA, Eclipse, VS Code, or any Java IDE</p>
</div>
<div class="feature">
<h3>3️⃣ Run Application</h3>
<p>Execute TradingPlatform.java file to start the application</p>
</div>
<div class="feature">
<h3>4️⃣ Start Trading</h3>
<p>Professional console interface will launch - Begin your trading journey!</p>
</div>
</div>
</div>
<div class="card">
<h2>📊 Project Overview</h2>
<p>A comprehensive Java console application that simulates a stock trading environment with real-time market data, portfolio management, and persistent data storage. Built using Object-Oriented Programming principles and Java serialization for data persistence.</p>
<div class="tech-stack">
<span class="tech-tag">Java</span>
<span class="tech-tag">OOP</span>
<span class="tech-tag">File I/O</span>
<span class="tech-tag">Serialization</span>
<span class="tech-tag">HashMap</span>
<span class="tech-tag">VS Code</span>
</div>
</div>
<div class="card">
<h2>✨ Key Features</h2>
<div class="features">
<div class="feature">
<h3>📈 Real-time Market Data</h3>
<p>Dynamic stock prices with automatic updates every 5 seconds, simulating real market fluctuations.</p>
</div>
<div class="feature">
<h3>💰 Buy/Sell Operations</h3>
<p>Complete trading functionality with balance verification and transaction recording.</p>
</div>
<div class="feature">
<h3>📋 Portfolio Management</h3>
<p>Track stock holdings, calculate total portfolio value, and view performance metrics.</p>
</div>
<div class="feature">
<h3>💾 Data Persistence</h3>
<p>Save and load portfolio data using Java serialization for permanent storage.</p>
</div>
</div>
</div>
<div class="card">
<h2>💻 Sample Code</h2>
<p>Here's a glimpse of the Portfolio class implementation:</p>
<div class="code-sample">
public class Portfolio implements Serializable {
private static final long serialVersionUID = 1L;
private Map<String, Integer> holdings; // Stock symbol → quantity
private double totalValue;
public void addStock(String symbol, int quantity) {
holdings.put(symbol, holdings.getOrDefault(symbol, 0) + quantity);
}
public void updateTotalValue(Map<String, Stock> availableStocks) {
totalValue = 0.0;
for (Map.Entry<String, Integer> holding : holdings.entrySet()) {
String symbol = holding.getKey();
int quantity = holding.getValue();
if (availableStocks.containsKey(symbol)) {
double currentPrice = availableStocks.get(symbol).getCurrentPrice();
totalValue += currentPrice * quantity;
}
}
}
}
</div>
</div>
<div class="card">
<h2>📁 Project Links</h2>
<div class="download-buttons">
<a href="https://github.com/manishcoder92" class="btn">💼 My GitHub Profile</a>
<a href="https://www.linkedin.com/in/manish-kumar-37349633a/" class="btn">💼 LinkedIn</a>
</div>
<p style="margin-top: 20px; text-align: center;">
<strong>Built for CodeAlpha Internship Program</strong><br>
Developed by: <strong>Manish Kumar</strong><br>
Technology Stack: Java, OOP, File I/O, VS Code
</p>
</div>
</div>
</body>
</html>