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

This commit is contained in:
Marc Blatter 2026-07-04 12:56:02 +02:00
parent 8acd83b33f
commit 845944ec1d
2 changed files with 203 additions and 138 deletions

View File

@ -210,144 +210,209 @@ 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>
* { * {
font-family: 'Courier New', monospace; margin: 0;
} padding: 0;
box-sizing: border-box;
}
body { body {
background-color: #0a0e27; background-color: #0f0f1e;
color: #ffd700; color: #e0e0e0;
margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
padding: 20px; line-height: 1.6;
} }
h1 { .header {
color: #ffd700; background: linear-gradient(90deg, #8b2d9e 0%, #d946a6 25%, #ff6b35 50%, #ffd700 75%, #00ff88 100%);
text-shadow: 0 0 10px #ffd700; padding: 15px 30px;
border-bottom: 3px solid #ffd700; border-bottom: 3px solid #ff6b35;
padding-bottom: 10px; }
}
.container { .header h1 {
max-width: 1400px; color: #fff;
margin: 0 auto; font-size: 28px;
} font-weight: 700;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.status-bar { .container {
background-color: #1c4700; max-width: 1600px;
border: 2px solid #ffd700; margin: 0 auto;
padding: 10px; padding: 30px;
margin-bottom: 20px; }
border-radius: 5px;
}
.status-bar .status-indicator { .top-metrics {
background-color: #0f0; display: grid;
color: #000; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
padding: 5px 10px; gap: 20px;
border-radius: 3px; margin-bottom: 30px;
font-weight: bold; }
display: inline-block;
}
.metrics { .metric-card {
display: grid; background-color: #1a1a2e;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border: 2px solid;
gap: 15px; border-image: linear-gradient(135deg, #d946a6, #ff6b35) 1;
margin-bottom: 20px; border-radius: 12px;
} padding: 20px;
box-shadow: 0 8px 24px rgba(217, 70, 166, 0.15);
transition: all 0.3s ease;
}
.card { .metric-card:hover {
background-color: #1a1a2e; box-shadow: 0 12px 32px rgba(217, 70, 166, 0.25);
border: 2px solid #ffd700; transform: translateY(-4px);
border-radius: 5px; }
padding: 15px;
box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.card-title { .metric-label {
color: #ffd700; color: #888;
font-weight: bold; font-size: 12px;
text-transform: uppercase; text-transform: uppercase;
font-size: 12px; letter-spacing: 1px;
letter-spacing: 2px; margin-bottom: 8px;
margin-bottom: 8px; }
border-bottom: 1px solid #ffd700;
padding-bottom: 5px;
}
.card-value { .metric-value {
color: #ffd700; color: #ffd700;
font-size: 24px; font-size: 32px;
font-weight: bold; font-weight: 700;
text-shadow: 0 0 10px #ffd700; margin-bottom: 5px;
} }
.card-sub { .metric-change {
color: #888; color: #00ff88;
font-size: 11px; font-size: 14px;
margin-top: 5px; }
}
.positive { .metric-change.negative {
color: #0f0; color: #ff4444;
text-shadow: 0 0 10px #0f0; }
}
.negative { .section-title {
color: #ff4444; color: #fff;
text-shadow: 0 0 10px #ff4444; font-size: 20px;
} font-weight: 700;
margin: 30px 0 20px 0;
text-transform: uppercase;
letter-spacing: 2px;
border-left: 4px solid #ff6b35;
padding-left: 15px;
}
.trades-section { .trades-table-wrapper {
background-color: #1a1a2e; background-color: #1a1a2e;
border: 2px solid #ffd700; border: 2px solid #2d2d4e;
border-radius: 5px; border-radius: 12px;
padding: 15px; padding: 20px;
margin-top: 20px; overflow-x: auto;
} box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.trades-section h2 { table {
color: #ffd700; width: 100%;
text-transform: uppercase; border-collapse: collapse;
letter-spacing: 2px; }
border-bottom: 2px solid #ffd700;
padding-bottom: 10px;
}
table { th {
width: 100%; background: linear-gradient(90deg, #8b2d9e, #d946a6);
border-collapse: collapse; color: #fff;
margin-top: 15px; padding: 15px;
} text-align: left;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 600;
}
th { td {
background-color: #1c4700; padding: 15px;
color: #ffd700; border-bottom: 1px solid #2d2d4e;
padding: 10px; color: #e0e0e0;
text-align: left; }
text-transform: uppercase;
font-size: 12px;
letter-spacing: 1px;
border: 1px solid #ffd700;
}
td { tr:last-child td {
color: #ffd700; border-bottom: none;
padding: 10px; }
border: 1px solid #1c4700;
}
tr:hover { tr:hover {
background-color: #1c4700; background-color: #252540;
} }
.last-update { .status-badge {
color: #888; display: inline-block;
font-size: 11px; padding: 6px 12px;
margin-top: 20px; border-radius: 20px;
text-align: right; font-size: 11px;
} font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.status-live {
background-color: #00ff88;
color: #000;
}
.status-profit {
background-color: #00ff88;
color: #000;
}
.status-loss {
background-color: #ff4444;
color: #fff;
}
.grid-2 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.balance-card {
background-color: #1a1a2e;
border: 2px solid #ff6b35;
border-radius: 12px;
padding: 25px;
box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}
.balance-label {
color: #888;
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 10px;
}
.balance-value {
color: #fff;
font-size: 28px;
font-weight: 700;
}
.balance-sub {
color: #00ff88;
font-size: 13px;
margin-top: 8px;
}
.last-update {
color: #666;
font-size: 12px;
text-align: right;
margin-top: 30px;
border-top: 1px solid #2d2d4e;
padding-top: 15px;
}
.no-data {
text-align: center;
color: #666;
padding: 40px;
font-style: italic;
}
</style> </style>
</head> </head>
<body> <body>