From b7b311e3cf8c057c77168e376c014a0cce6d58bf Mon Sep 17 00:00:00 2001 From: Marc Blatter Date: Sat, 4 Jul 2026 23:29:28 +0200 Subject: [PATCH] =?UTF-8?q?Dashboard=20V8:=20Modern=20Mobile-First=20Respo?= =?UTF-8?q?nsive=20Design=20-=20NEW:=20Hamburger=20menu=20for=20mobile=20(?= =?UTF-8?q?=E2=98=B0=20button)=20-=20NEW:=20Modern=20CSS=20Grid=20+=20Flex?= =?UTF-8?q?box=20layout=20-=20NEW:=20Fluid=20typography=20with=20CSS=20cla?= =?UTF-8?q?mp()=20-=20NEW:=20Touch-friendly=20UI=20(44px+=20tap=20targets)?= =?UTF-8?q?=20-=20NEW:=20Smooth=20scrolling=20(-webkit-overflow-scrolling)?= =?UTF-8?q?=20-=20NEW:=20Mobile-optimized=20breakpoints=20(768px,=20480px)?= =?UTF-8?q?=20-=20IMPROVED:=20Auto-collapsing=20sidebar=20on=20mobile=20-?= =?UTF-8?q?=20IMPROVED:=20Optimized=20table=20display=20for=20small=20scre?= =?UTF-8?q?ens=20-=20ACCESSIBILITY:=20Better=20spacing=20and=20sizing=20fo?= =?UTF-8?q?r=20mobile=20users=20-=20FEATURES:=20Responsive=20images=20and?= =?UTF-8?q?=20fluid=20spacing=20-=20VERSION:=20V8=20ENHANCED=20-=20PERFORM?= =?UTF-8?q?ANCE:=20Fast=20loading,=20smooth=20transitions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web_dashboard.py | 446 ++++++++++++++++++++++++++++++------------- 1 file changed, 317 insertions(+), 129 deletions(-) diff --git a/src/web_dashboard.py b/src/web_dashboard.py index 396ce24..eb9e030 100644 --- a/src/web_dashboard.py +++ b/src/web_dashboard.py @@ -102,222 +102,384 @@ async def root(): - -Trading Bot V7 + +Trading Bot V8 -
- -
Holdings
- - - - - - - - - - - ''' +
+
Holdings
+
+
AssetFreeLockedTotalUSD Value
+ + + + + + + + + ''' tracked = ['BTC', 'ETH', 'SOL', 'BNB', 'XRP', 'USDT', 'USDC'] balance = state.get('balance', {}) @@ -376,17 +543,38 @@ tr:hover {{ price = prices.get(asset, 0) value = data['total'] * price html += f''' - - - - - - ''' + + + + + ''' html += ''' -
AssetFreeTotalValue
{asset}{data['free']:.6f}{data['locked']:.6f}{data['total']:.6f}${value:.2f}
{asset}{data['free']:.4f}{data['total']:.4f}${value:.2f}
+ +
+ + + '''