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
This commit is contained in:
Gemini CLI
2026-03-05 11:04:30 +01:00
parent 30aeda0901
commit da7fbd1b49
5 changed files with 151 additions and 105 deletions

View File

@ -39,7 +39,7 @@ services:
container_name: btc_collector
network_mode: host
environment:
- DB_HOST=localhost
- DB_HOST=20.20.20.20
- DB_PORT=5433
- DB_NAME=btc_data
- DB_USER=btc_bot
@ -49,9 +49,6 @@ services:
- ../src:/app/src
- /volume1/btc_bot/logs:/app/logs
- ../config:/app/config:ro
depends_on:
timescaledb:
condition: service_healthy
restart: unless-stopped
deploy:
resources:
@ -68,7 +65,7 @@ services:
container_name: btc_api
network_mode: host
environment:
- DB_HOST=localhost
- DB_HOST=20.20.20.20
- DB_PORT=5433
- DB_NAME=btc_data
- DB_USER=btc_bot
@ -77,8 +74,6 @@ services:
- ../src:/app/src
- /volume1/btc_bot/exports:/app/exports
- ../config:/app/config:ro
depends_on:
- timescaledb
restart: unless-stopped
deploy:
resources:
@ -89,13 +84,19 @@ services:
build:
context: ..
dockerfile: docker/Dockerfile.bot
image: btc_ping_pong_bot
image: btc_bot
container_name: btc_ping_pong_bot
network_mode: host
environment:
- API_KEY=${API_KEY}
- API_SECRET=${API_SECRET}
- DB_HOST=20.20.20.20
- DB_PORT=5433
- DB_NAME=btc_data
- DB_USER=btc_bot
- DB_PASSWORD=${DB_PASSWORD}
- API_KEY=${BYBIT_API_KEY}
- API_SECRET=${BYBIT_API_SECRET}
- LOG_LEVEL=INFO
- PYTHONUNBUFFERED=1
volumes:
- ../src:/app/src
- /volume1/btc_bot/logs:/app/logs