Commit Graph

33 Commits

Author SHA1 Message Date
f544b06753 feat: enhance trade tracking with fees, PnL, and refined logging (v1.7.3)
- Implement real-time fee and realized PnL tracking using get_executions.
- Rename 'side' column to 'trade' in CSV log and dashboard (Enter/Exit labels).
- Add automatic CSV header migration (side -> trade).
- Enhance dashboard with session PnL (USD/BTC), total fees, and used leverage.
- Improve signal detection with candle-internal crossover logic.
- Add robust retry mechanism with failure window tracking.
- Sync exchange leverage automatically based on direction.
- Update config with robustness and mode-specific leverage settings.
2026-03-07 22:57:51 +01:00
8fe8224762 fix: implement precise rounding for spot asset swaps (v1.5.7) 2026-03-05 23:45:09 +01:00
3e741592dc feat: fix asset swap logic for Unified Trading Accounts (v1.5.6) 2026-03-05 23:43:02 +01:00
0ce712cc86 fix: resolve invalid symbol error and refine DB queries (v1.5.5) 2026-03-05 23:38:32 +01:00
57e098c25b fix: refine base_coin extraction to support BTCUSD and fix DB queries (v1.5.4) 2026-03-05 23:30:38 +01:00
8b076106dc fix: ensure DB credentials are explicitly passed and verified (v1.5.3) 2026-03-05 23:26:59 +01:00
58070550a5 fix: increase 1D candle fetch limit for more reliable MA44 (v1.5.2) 2026-03-05 23:24:33 +01:00
f3ce68de22 fix: resolve Illegal category error by adding safety checks (v1.5.1) 2026-03-05 23:21:15 +01:00
6e6e9db5cc feat: implement automated direction (1D SMA44) and asset management (v1.5.0) 2026-03-05 23:12:30 +01:00
e553a1dd48 feat: change indicator order in dashboard (v1.4.2) 2026-03-05 23:07:29 +01:00
cf0ccbcad5 revert: remove all blinking related Live UI changes (v1.4.1) 2026-03-05 22:50:40 +01:00
b44847cbbd feat: use rich.Live(screen=False) for flicker-free dashboard (v1.3.9) 2026-03-05 22:42:48 +01:00
08a4639dad feat: use ANSI cursor reset for flicker-free dashboard (v1.3.8) 2026-03-05 22:39:48 +01:00
ca0e74d402 fix: resolve pybit TypeError and implement async timeouts (v1.3.7) 2026-03-05 22:37:28 +01:00
fb9736177a feat: replace rich.live with standard print and add exchange timeouts (v1.3.6) 2026-03-05 22:36:16 +01:00
f1d7c7138c feat: add heartbeat and robust error handling to main loop (v1.3.5) 2026-03-05 22:34:21 +01:00
fcfa2244f2 feat: implement rich.live for non-blinking dashboard (v1.3.4) 2026-03-05 22:28:22 +01:00
38d8e5f1de fix: resolve KeyError in indicators and fix wallet balance logic (v1.3.3) 2026-03-05 22:21:35 +01:00
40178ca469 fix: map interval to DB format and add 'No candles found' status (v1.3.2) 2026-03-05 22:19:24 +01:00
b5cc51a4d2 fix: use BTC for DB queries and BTCUSDT for Bybit API (v1.3.1) 2026-03-05 22:15:01 +01:00
7c6faebead feat: refactor bot to use DB for candles with 5s/15s polling sync (v1.3.0) 2026-03-05 22:11:17 +01:00
9ffcf4c8c4 chore: bump version to 1.2.1 for indicator reorder 2026-03-05 21:33:56 +01:00
0ea6b22388 style: reorder indicators in dashboard table 2026-03-05 21:28:45 +01:00
36dd389e10 feat: introduce versioning (v1.2.0) and display it in dashboard 2026-03-05 21:22:57 +01:00
07c71ab209 feat: align ping_pong_bot logic with STRATEGY_PING_PONG.md 2026-03-05 21:21:34 +01:00
9c3fa908ce feat: add real-time status dashboard using rich tables 2026-03-05 21:10:22 +01:00
ccc36da1e2 fix: resolve Bybit Hedge Mode position idx error by adding positionIdx and settleCoin 2026-03-05 21:02:12 +01:00
295bd3085c revert: remove database dependency from ping_pong_bot to fix aiohttp import error 2026-03-05 20:54:23 +01:00
2e901ac95e feat: refactor ping_pong_bot to use database for candles and sync crossover logic with dashboard 2026-03-05 15:09:14 +01:00
da7fbd1b49 feat: fix Bybit Unified Account support and enhance Docker logging for ping_pong_bot
- Added accountType='UNIFIED' to wallet balance requests
- Updated balance retrieval to support totalWalletBalance for UTA
- Replaced rich.Live with standard logging for better Docker compatibility
- Added PYTHONUNBUFFERED=1 to ensure real-time logs in containers
- Updated docker-compose to point to NAS database (20.20.20.20)
- Created GEMINI.md with comprehensive project context
2026-03-05 11:04:30 +01:00
30aeda0901 docs: add DOCKER_GUIDE.md and fix .env parsing; chore: update docker and script configurations 2026-03-05 08:20:18 +01:00
fdab0a3faa Pre-refactor: commit before converting indicators to self-contained files 2026-03-01 19:37:07 +01:00
c7ee5135ae Initial commit - BTC Trading Dashboard
- FastAPI backend with PostgreSQL database connection
- Frontend dashboard with lightweight-charts
- Technical indicators (SMA, EMA, RSI, MACD, Bollinger Bands, etc.)
- Trading strategy simulation and backtesting
- Database connection to NAS at 20.20.20.20:5433
- Development server setup and documentation
2026-02-25 22:10:30 +01:00