Commit Graph

116 Commits

Author SHA1 Message Date
Marc Blatter 2b09ab6d13 Bugfix: Bot + Dashboard sync - Save active_trades.json every cycle so dashboard shows real-time positions (2026-07-09 20:00) 2026-07-09 19:59:00 +02:00
Marc Blatter 17b94a904e Bot auto-update: src/web_dashboard.py 2026-07-09 19:55:01 +02:00
Marc Blatter e7c8f425a2 Cleanup: Remove verbose description from dashboard version label (V0.3 only, professional) 2026-07-09 19:53:11 +02:00
Marc Blatter 4cc93312bf Bot auto-update: src/web_dashboard.py 2026-07-09 19:45:01 +02:00
Marc Blatter 9372cbb74d Docs: Update Learnings 6&7 + Decisions 5&6 - Crisis resolution (Auto-swap audit + liquidation + V0.3 restart 2026-07-09 19:36) 2026-07-09 19:40:51 +02:00
Marc Blatter f731ab52a4 Bot auto-update: src/main_ml.py,src/main_ml_v03.py 2026-07-09 18:55:01 +02:00
Marc Blatter d5e030b170 Bugfix: Bot V0.3 - Remove undefined variable from startup logging (line 229) 2026-07-09 18:51:42 +02:00
Marc Blatter cba8e4f4d4 Bot auto-update: src/main_ml.py,src/main_ml_v02_backup_1783615772.py 2026-07-09 18:50:01 +02:00
Marc Blatter 82be6ffe94 Feature: Bot V0.3 - Fresh cache + local min signal + hard TP/SL (2026-07-09 18:40 UTC) 2026-07-09 18:28:11 +02:00
Marc Blatter 138cf018d2 Docs: Add comprehensive ARCHITECTURE.md - Auto-Swap feature, Risk Management, Components documented 2026-07-08 23:32:49 +02:00
Marc Blatter d4dabe38fc Bot auto-update: src/__pycache__/main_ml.cpython-310.pyc,src/config.py,src/dashboard_pnl.html,src/frigate_report.py,src/main.py,src/main_ml.py.backup.18pct,src/main_ml.py.backup.30pct,src/main_ml.py.backup.35pct.20240706,src/main_ml.py.backup.auto-trading,src/main_ml.py.backup_sweep,src/main_ml_BACKUP_before_precision_fix.py,src/main_ml_enhanced.py,src/main_ml_fixed.py,src/main_ml_v2.py,src/main_ml_v4_backup.py,src/main_ml_v6.py,src/persistence.py,src/report_generator.py 2026-07-08 23:30:01 +02:00
Marc Blatter ae15976f6b Feature: Add auto-swap (coins to USDT) function - +$64.61 converted, freeing capital for trading 2026-07-08 23:28:48 +02:00
Marc Blatter 0973dace06 cleanup: Remove backup files, add .gitignore, create production-ready repository structure
- Delete 20+ backup/test files and old versions
- Add comprehensive .gitignore for Python development
- Update requirements.txt with only essential dependencies
- Add ARCHITECTURE.md for system documentation
- Keep only production files: main_ml.py, web_dashboard.py, README.md

Repository is now clean, lean, and production-ready for Version 0.2
2026-07-07 22:16:09 +02:00
Marc Blatter edf23f9a4f Bot auto-update: src/__pycache__/web_dashboard.cpython-310.pyc 2026-07-07 22:05:01 +02:00
Marc Blatter 888e0f32dd v0.2: Remove V5/V10 labels, consolidate to Version 0.2 with adaptive learning 2026-07-07 22:00:28 +02:00
Marc Blatter d36e07d999 Bot auto-update: src/__pycache__/main_ml.cpython-310.pyc,src/main_ml.py,src/web_dashboard.py 2026-07-07 22:00:01 +02:00
Marc Blatter 544cd7812b Bot auto-update: src/main_ml.py 2026-07-07 21:50:02 +02:00
Marc Blatter d6863872c7 Bot auto-update: src/__pycache__/web_dashboard.cpython-310.pyc,src/web_dashboard.py 2026-07-07 09:05:01 +02:00
Marc Blatter 6dec4231d0 BUGFIX: P&L calculation now properly included in get_state() → Dashboard shows real profit/loss 2026-07-07 09:04:44 +02:00
Marc Blatter b9bd1b2e96 Bot auto-update: src/web_dashboard.py 2026-07-06 22:15:01 +02:00
Marc Blatter b160246bb3 Dashboard: Reduce refresh rate from 5s to 10s 2026-07-06 22:12:36 +02:00
Marc Blatter 7a99a799f3 Bot auto-update: src/__pycache__/web_dashboard.cpython-310.pyc,src/web_dashboard.py 2026-07-06 22:10:01 +02:00
Marc Blatter a4b2943949 Dashboard: Live P&L display fully integrated into bot.bizmark.cloud 2026-07-06 22:09:22 +02:00
Marc Blatter 2b18f9f006 Bot auto-update: src/__pycache__/web_dashboard.cpython-310.pyc,src/web_dashboard.py 2026-07-06 22:05:01 +02:00
Marc Blatter 41024bbbe7 Dashboard: Add live P&L display (, , status) 2026-07-06 22:00:27 +02:00
Marc Blatter deaeba6287 Bot auto-update: src/__pycache__/main_ml.cpython-310.pyc,src/__pycache__/web_dashboard.cpython-310.pyc,src/dashboard_pnl.html,src/main_ml.py,src/web_dashboard.py 2026-07-06 22:00:01 +02:00
Marc Blatter c1fb49c827 Bot auto-update: src/__pycache__/main_ml.cpython-310.pyc,src/main_ml.py 2026-07-06 21:55:01 +02:00
Marc Blatter 3cc76aa07b Liquidity: Max 1 position, 50% investment (single-position strategy) 2026-07-06 21:54:27 +02:00
Marc Blatter 07cffd0efb Bot auto-update: src/main_ml.py,src/main_ml.py.backup.35pct.20240706 2026-07-06 21:50:01 +02:00
Marc Blatter fc1f293dce Strategy V2: Signal 7.5%, Investment 25-35%, TP 2.8%, SL 1.8%, Trailing Stop, Max 3 Pos, Cooldown Logic 2026-07-06 21:48:26 +02:00
Marc Blatter 0e3bcff00e Bot auto-update: src/__pycache__/main_ml.cpython-310.pyc,src/main_ml.py 2026-07-06 21:20:01 +02:00
Marc Blatter a815dfe304 Bot auto-update: src/main_ml.py,src/main_ml.py.backup.30pct 2026-07-06 21:15:01 +02:00
Marc Blatter 4814fe0a58 Bot auto-update: src/main_ml.py,src/main_ml.py.backup.18pct 2026-07-06 11:05:02 +02:00
Marc Blatter 6758c9914b Position Sizing: Increase investment from 18% to 30% (fix NOTIONAL rejection for small orders) 2026-07-06 11:04:08 +02:00
Marc Blatter a861127afc Dashboard V12: Fix Open Positions count
- PROBLEM: Dashboard showed 0 positions (read from empty trades.json)
- SOLUTION: Count locked coins instead (BTC/ETH/SOL/BNB/XRP)
- RESULT: Now shows 5 active positions correctly
- API: Added active_positions field to /api/state
2026-07-05 08:19:56 +02:00
Marc Blatter 57beea0cc9 Bot auto-update: src/web_dashboard.py 2026-07-05 08:15:01 +02:00
Marc Blatter da3fe15feb Bot auto-update: src/main_ml.py 2026-07-05 00:55:01 +02:00
Marc Blatter f3e7114b60 Bot V5 FINAL FIX: Decimal Precision + NOTIONAL Validation
- FIXED: Binance API method (order_take_profit → create_order)
- FIXED: Floating point precision using Decimal library
- FIXED: Quantity rounding without precision loss
- FIXED: Price rounding without precision loss
- FIXED: NOTIONAL filter validation before order placement
- NEW: min_notional loaded from Binance filters
- NEW: Order value validation before market buy
- TESTED: No more API precision errors
- VERSION: V5 ENHANCED FULLY FIXED
- STATUS: Ready for production trading
2026-07-04 23:53:37 +02:00
Marc Blatter f34d0a49dd Bot auto-update: src/main_ml.py 2026-07-04 23:50:01 +02:00
Marc Blatter aacbeaf6df Bot V5 ENHANCED: Telegram Notifications + Quantity Precision
- NEW: Startup message with strategy summary (sent to Telegram)
- NEW: 3h performance reports (automatic every 3 hours)
- NEW: Telegram integration for notifications + metrics
- FIXED: Quantity rounding to Binance step size
- FIXED: All buy orders now precision-safe
- NEW: Performance metrics tracked per day
- NEW: Win rate + P&L reporting
- NEW: Daily PnL tracking + pause at -5%
- FEATURE: Auto-reporting every 3 hours
- VERSION: V5 ENHANCED PRODUCTION
- STATUS: Ready for 100% USDT trading with Telegram alerts
2026-07-04 23:44:09 +02:00
Marc Blatter 0fd2bdc647 Bot V5 ENHANCED: CRITICAL PRECISION FIX for SL Orders
- FIXED: PRICE_FILTER error on SL placement
- FIXED: Added _round_to_tick() for all SL prices
- NEW: Pair precision cache (BTC/ETH/SOL/BNB/XRP tick sizes)
- IMPROVED: SL now respects Binance PRICE_FILTER rules
- IMPROVED: XRP SL correctly rounded to 0.0001 tick
- BEHAVIOR: All SL orders now execute correctly
- RISK: Still -2.5% SL, +3% TP, -5% daily limit
- STATUS: Ready for 100% USDT trading
- VERSION: Production-ready
2026-07-04 23:39:43 +02:00
Marc Blatter 0431bddebd Bot auto-update: src/web_dashboard.py 2026-07-04 23:35:01 +02:00
Marc Blatter ec1e7213cc Dashboard V9: Simplified Clean Design - No Sidebar
- REMOVED: Sidebar navigation (no added value)
- LAYOUT: Clean centered content, full width
- METRICS: Minimum 2 tiles per row (Portfolio + USDT)
- DESKTOP: 3 tiles in row (Portfolio, USDT, Positions)
- MOBILE: 2x2 grid layout (always 2 per row)
- DESIGN: Same grayscale + green accents
- TABLES: Live Prices + Holdings sections below
- PERFORMANCE: Smooth animations, loading optimized
- RESPONSIVE: Modern CSS Grid with minmax
- TYPOGRAPHY: Fluid scaling via clamp()
- FOOTER: None (clean end)
- VERSION: V9 ENHANCED
2026-07-04 23:31:37 +02:00
Marc Blatter b7b311e3cf Dashboard V8: Modern Mobile-First Responsive Design
- NEW: Hamburger menu for mobile (☰ button)
- NEW: Modern CSS Grid + Flexbox layout
- NEW: Fluid typography with CSS clamp()
- NEW: Touch-friendly UI (44px+ tap targets)
- NEW: Smooth scrolling (-webkit-overflow-scrolling)
- NEW: Mobile-optimized breakpoints (768px, 480px)
- IMPROVED: Auto-collapsing sidebar on mobile
- IMPROVED: Optimized table display for small screens
- ACCESSIBILITY: Better spacing and sizing for mobile users
- FEATURES: Responsive images and fluid spacing
- VERSION: V8 ENHANCED
- PERFORMANCE: Fast loading, smooth transitions
2026-07-04 23:29:28 +02:00
Marc Blatter 05fcb8ad9a Dashboard V7: Complete Redesign with Grayscale Theme
- NEW: Sidebar navigation (left panel with menu)
- NEW: Grayscale color scheme (#1e1e1e, #2a2a2a, #404040)
- NEW: Green accents only for key metrics (Portfolio, USD Values)
- REMOVED: Footer text entirely
- IMPROVED: Professional spacing and layout
- STYLE: Monospace font, clean typography
- RESPONSIVE: Mobile-optimized layout
- PRICES: 2 decimal precision across all assets
- HOLDINGS: Detailed breakdown with USD values in green
2026-07-04 23:23:04 +02:00
Marc Blatter 6e6c9af51a Dashboard V6: 2 Decimal Precision for All Prices
- Title: Updated to V6
- Bot Version: V6 ENHANCED
- Price Precision: 2 decimals (was 4)
- Design: Same dark theme + green accents
- Performance: <1.2 sec response time
- Layout: Unchanged from V5
- All prices now show exactly .XX format
2026-07-04 23:18:34 +02:00
Marc Blatter d60b1cb839 Bot auto-update: src/web_dashboard.py 2026-07-04 23:10:01 +02:00
Marc Blatter ec07f47438 FIX: Dashboard Portfolio Discrepancy
- Root cause: Hardcoded XRP price 2.5x too high
- Solution: Dashboard now uses LIVE Binance prices
- Result: Portfolio 39.82 (correct) vs 85.50 (wrong)
- Now: 100% match with Binance Spot balance
- All prices updated on every API call
2026-07-04 23:07:06 +02:00
Marc Blatter 7a6c888db4 Bot V5 ENHANCED: Risk Management Implementation
- Stop Loss: 2.5% on all trades
- Take Profit: 3% (increased from 1%)
- Daily Loss Limit: -5% max per day
- Risk/Reward: 1:1.2 ratio enforced
- All 5 current trades protected
- Deployment: Safe restart without trade interruption
2026-07-04 22:59:33 +02:00
Marc Blatter 400740b541 Add Frigate Daily Report: Telegram integration, daily 20:30 CET summary 2026-07-04 20:34:38 +02:00