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