Bot auto-update: src/__pycache__/web_dashboard.cpython-310.pyc,src/web_dashboard.py

This commit is contained in:
Marc Blatter 2026-07-04 13:07:52 +02:00
parent 2747703dd6
commit 7c8b109fac
2 changed files with 143 additions and 212 deletions

View File

@ -210,220 +210,151 @@ html_content = """
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trading Bot Dashboard</title> <title>Trading Bot Dashboard</title>
<style> <style>
:root { * {
--bg-primary: #0a0a0a; margin: 0;
--bg-secondary: #1a1a1a; padding: 0;
--bg-tertiary: #2a2a2a; box-sizing: border-box;
--text-primary: #ffffff;
--text-secondary: #b0b0b0;
--text-tertiary: #888888;
--border-color: #2a2a2a;
--accent-green: #2ecc71;
--accent-red: #e74c3c;
} }
body {
* { background-color: #0d0d0d;
margin: 0; color: #d0d0d0;
padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
box-sizing: border-box; line-height: 1.6;
} }
body { h1, h2, h3 {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #ffffff;
background: linear-gradient(135deg, #2ecc71c29 0%, #302b63 100%); font-weight: 600;
color: #e0e0e0; }
padding: 20px;
min-height: 100vh; .container {
} max-width: 1400px;
margin: 0 auto;
.container { padding: 40px;
max-width: 1400px; }
margin: 0 auto;
} .card {
background-color: #1a1a1a;
.header { border: 1px solid #2a2a2a;
text-align: center; border-radius: 8px;
margin-bottom: 30px; padding: 24px;
border-bottom: 2px solid #6c63ff; margin-bottom: 20px;
padding-bottom: 20px; }
}
.card-title {
.header h1 { color: #a0a0a0;
font-size: 2.5em; font-size: 12px;
color: #6c63ff; text-transform: uppercase;
margin-bottom: 10px; letter-spacing: 1px;
} margin-bottom: 12px;
font-weight: 600;
.status { }
display: inline-block;
padding: 8px 16px; .card-value {
background: #00c853; color: #ffffff;
color: white; font-size: 28px;
border-radius: 20px; font-weight: 700;
font-weight: bold; margin-bottom: 8px;
font-size: 0.9em; }
}
.card-sub {
.grid { color: #666666;
display: grid; font-size: 12px;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
gap: 20px;
margin-bottom: 30px; .positive {
} color: #2ecc71;
}
.card {
background: rgba(255, 255, 255, 0.1); .negative {
border: 1px solid #6c63ff; color: #e74c3c;
border-radius: 10px; }
padding: 20px;
backdrop-filter: blur(10px); table {
transition: all 0.3s ease; width: 100%;
} border-collapse: collapse;
background-color: #1a1a1a;
.card:hover { border: 1px solid #2a2a2a;
background: rgba(255, 255, 255, 0.15); border-radius: 8px;
border-color: #00c853; overflow: hidden;
transform: translateY(-5px); }
}
th {
.card-title { background-color: #252525;
color: #6c63ff; color: #a0a0a0;
font-size: 0.9em; padding: 14px 16px;
text-transform: uppercase; text-align: left;
letter-spacing: 1px; font-size: 12px;
margin-bottom: 10px; font-weight: 600;
} text-transform: uppercase;
letter-spacing: 0.5px;
.card-value { border-bottom: 1px solid #2a2a2a;
font-size: 2em; }
font-weight: bold;
color: #e0e0e0; td {
margin-bottom: 5px; padding: 14px 16px;
} border-bottom: 1px solid #252525;
color: #d0d0d0;
.card-sub { font-size: 13px;
color: #a0a0a0; }
font-size: 0.85em;
} tr:last-child td {
border-bottom: none;
.positive { }
color: #00c853;
} tr:hover {
background-color: #222222;
.negative { }
color: #ff3d00;
} .metrics {
display: grid;
.section { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
margin-bottom: 30px; gap: 16px;
} margin-bottom: 40px;
}
.section-title {
color: #6c63ff; .status-badge {
font-size: 1.5em; display: inline-block;
margin-bottom: 15px; padding: 6px 12px;
border-bottom: 1px solid #6c63ff; border-radius: 4px;
padding-bottom: 10px; font-size: 11px;
} font-weight: 600;
text-transform: uppercase;
.trades-list { }
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); .badge-live {
gap: 15px; background-color: #252525;
} color: #a0a0a0;
}
.trade-card {
background: rgba(255, 255, 255, 0.08); .badge-profit {
border-left: 4px solid #6c63ff; background-color: rgba(46, 204, 113, 0.15);
border-radius: 5px; color: #2ecc71;
padding: 15px; }
font-size: 0.9em;
} .badge-loss {
background-color: rgba(231, 76, 60, 0.15);
.trade-card.open { color: #e74c3c;
border-left-color: #6c63ff; }
}
.last-update {
.trade-card.closed { color: #666666;
border-left-color: #00c853; font-size: 11px;
} text-align: right;
margin-top: 40px;
.trade-pair { padding-top: 20px;
font-weight: bold; border-top: 1px solid #2a2a2a;
color: #6c63ff; }
margin-bottom: 8px;
} .empty {
text-align: center;
.trade-info { color: #666666;
display: grid; padding: 40px;
grid-template-columns: 1fr 1fr; font-style: italic;
gap: 10px; font-size: 13px;
font-size: 0.85em; }
color: #a0a0a0; </style>
}
.trade-info strong {
color: #e0e0e0;
}
.swap-item {
background: rgba(255, 255, 255, 0.05);
padding: 10px;
border-radius: 5px;
margin-bottom: 8px;
font-size: 0.85em;
}
.performance-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.stat-card {
background: rgba(108, 99, 255, 0.2);
border: 1px solid #6c63ff;
border-radius: 8px;
padding: 15px;
text-align: center;
}
.stat-label {
color: #a0a0a0;
font-size: 0.8em;
text-transform: uppercase;
margin-bottom: 8px;
}
.stat-value {
font-size: 1.8em;
font-weight: bold;
color: #00c853;
}
.stat-value.loss {
color: #ff3d00;
}
.update-time {
text-align: right;
color: #666;
font-size: 0.8em;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #333;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.fade-in {
animation: fadeIn 0.3s ease-in;
}
</style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">