-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
276 lines (265 loc) · 9.18 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crypto Arbitrage Dashboard</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #121212; /* Dark background */
color: #f0e68c; /* Yellow text */
margin: 0;
line-height: 1.6;
}
header {
background: #000; /* Black header */
color: #f0e68c;
padding: 20px 0;
text-align: center;
}
nav ul {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
margin-top: 10px;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
color: #f0e68c;
text-decoration: none;
font-weight: bold;
}
.container {
width: 90%;
max-width: 1200px;
margin: auto;
padding: 20px;
}
.summary, .graph-section, .profit-info, .bot-status {
margin: 20px 0;
background: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
h2 {
margin-bottom: 10px;
font-size: 1.8em;
text-align: center;
color: #f0e68c;
}
.profit-info {
display: flex;
justify-content: space-between;
margin: 20px 0;
}
.time-info {
text-align: center;
margin: 10px 0;
font-size: 1.2em;
}
canvas {
max-width: 100%;
height: 400px;
}
footer {
text-align: center;
padding: 15px 0;
background: #000; /* Black footer */
color: #f0e68c;
position: relative;
bottom: 0;
width: 100%;
}
.status-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.status-table th, .status-table td {
padding: 10px;
border: 1px solid #ddd;
text-align: center;
color: #f0e68c;
}
.status-table th {
background-color: #333;
}
.footer-note {
margin-top: 20px;
font-size: 0.9em;
color: #ddd;
}
</style>
</head>
<body>
<header>
<h1>Crypto Arbitrage Dashboard</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="setup.html">Setup</a></li>
</ul>
</nav>
</header>
<main class="container">
<section class="summary">
<h2>Account Summary</h2>
<div class="profit-info">
<div><strong>Current Balance:</strong> <span id="current-balance">$0.00</span></div>
<div><strong>Daily Profit:</strong> <span id="daily-profit">$0.00</span></div>
<div><strong>Overall Profit:</strong> <span id="overall-profit">$0.00</span></div>
</div>
<div class="time-info" id="time-info"></div>
</section>
<section class="graph-section">
<h2>Bot Performance</h2>
<canvas id="botCharts"></canvas>
<p>Charts reset every 24 hours.</p>
</section>
<section class="bot-status">
<h2>Active Bots Status</h2>
<table class="status-table">
<thead>
<tr>
<th>Bot Name</th>
<th>Status</th>
<th>Last Trade</th>
<th>Profit</th>
</tr>
</thead>
<tbody id="bot-status-body">
<!-- Placeholder rows for bots -->
<tr>
<td>Bot 1</td>
<td>Active</td>
<td>10:30 AM</td>
<td>$15.00</td>
</tr>
<tr>
<td>Bot 2</td>
<td>Active</td>
<td>10:20 AM</td>
<td>$20.00</td>
</tr>
<tr>
<td>Bot 3</td>
<td>Active</td>
<td>10:15 AM</td>
<td>$10.00</td>
</tr>
<tr>
<td>Bot 4</td>
<td>Inactive</td>
<td>N/A</td>
<td>$0.00</td>
</tr>
<tr>
<td>Bot 5</td>
<td>Active</td>
<td>10:10 AM</td>
<td>$25.00</td>
</tr>
<tr>
<td>Bot 6</td>
<td>Active</td>
<td>10:05 AM</td>
<td>$30.00</td>
</tr>
<tr>
<td>Bot 7</td>
<td>Active</td>
<td>09:55 AM</td>
<td>$18.00</td>
</tr>
<tr>
<td>Bot 8</td>
<td>Inactive</td>
<td>N/A</td>
<td>$0.00</td>
</tr>
<tr>
<td>Bot 9</td>
<td>Active</td>
<td>09:50 AM</td>
<td>$22.00</td>
</tr>
<tr>
<td>Bot 10</td>
<td>Active</td>
<td>09:45 AM</td>
<td>$28.00</td>
</tr>
</tbody>
</table>
</section>
</main>
<footer>
<p>© 2024 Crypto Arbitrage. All rights reserved.</p>
<p class="footer-note">Note: Ensure your API keys and wallet addresses are secure.</p>
</footer>
<script>
document.addEventListener("DOMContentLoaded", () => {
const currentBalance = document.getElementById("current-balance");
const dailyProfit = document.getElementById("daily-profit");
const overallProfit = document.getElementById("overall-profit");
const timeInfo = document.getElementById("time-info");
const updateTime = () => {
const now = new Date();
const options = { timeZone: 'America/Chicago', hour: '2-digit', minute: '2-digit', second: '2-digit' };
timeInfo.innerText = `Current Time: ${now.toLocaleTimeString('en-US', options)}`;
};
const botData = Array.from({ length: 10 }, (_, i) => ({
label: `Bot ${i + 1}`,
data: Array.from({ length: 12 }, () => Math.random() * 100)
}));
const createChart = (ctx, data) => {
return new Chart(ctx, {
type: 'line',
data: {
labels: Array.from({ length: 12 }, (_, i) => `Hour ${i * 2}`),
datasets: data.map(bot => ({
label: bot.label,
data: bot.data,
borderColor: '#4CAF50',
backgroundColor: 'rgba(76, 175, 80, 0.2)',
borderWidth: 2,
fill: true
}))
},
options: {
responsive: true,
scales: {
x: {
title: { display: true, text: 'Hours' }
},
y: {
title: { display: true, text: 'Profit ($)' },
beginAtZero: true
}
}
}
});
};
const ctx = document.getElementById('botCharts').getContext('2d');
createChart(ctx, botData);
const updateDashboard = () => {
currentBalance.innerText = `$${(Math.random * 1000).toFixed(2)}`;
dailyProfit.innerText = `$${(Math.random() * 500).toFixed(2)}`;
overallProfit.innerText = `$${(Math.random() * 5000).toFixed(2)}`;
};
updateTime();
setInterval(updateTime, 1000); // Update time every second
updateDashboard();
setInterval(updateDashboard, 60000); // Update dashboard every minute
});
</script>
</body>
</html>