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