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