Clean up unused files, organize structure, update docs

- Delete obsolete files: data_fetcher_old.py, market_old.py, base_strategy.py (root),
  strategy_sma_cross.py, and old architecture remnants (address_monitor.py,
  position_monitor.py, trade_log.py, wallet_data.py, whale_tracker.py)
- Delete zero-byte Docker artifacts and runtime files (clp_hedger.log,
  clp_hedger/hedge_status.json)
- Move one-off utility scripts to scripts/ directory
- Move example/template files to .temp/ directory
- Update .gitignore: add entries for clp_hedger.log, clp_hedger/hedge_status.json,
  Docker layer hash files, Using, Running, and backups/
- Update .dockerignore: add clp_hedger.log, clp_hedger/hedge_status.json, backups/
- Create example config files: _data/strategies.json.example,
  _data/backtesting_conf.json.example, _data/coin_precision.json.example
- Update GEMINI.md: remove outdated session summaries and duplicate review section
- Update review.md: add cleanup status section, update remaining recommendations
- Update MIGRATION_PLAN.md: mark completed phases, update file references
- Update DOCKER_MIGRATION_GUIDE.md: update import_csv.py path reference
This commit is contained in:
DiTus
2026-08-05 09:50:36 +02:00
parent 967c86e8e9
commit 1a95fe1caa
39 changed files with 599 additions and 3116 deletions

View File

@ -1,5 +1,3 @@
version: "3.8"
services:
postgres:
image: postgres:15-alpine
@ -8,29 +6,37 @@ services:
environment:
POSTGRES_DB: hyper
POSTGRES_USER: hyper
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PASSWORD: kaqpaaoi0
volumes:
- pg_data:/var/lib/postgresql/data
- ./postgres/postgresql.conf:/etc/postgresql/postgresql.conf
command: postgres -c config_file=/etc/postgresql/postgresql.conf
ports:
- "5432:5432"
- "5433:5432"
networks:
- hyper_net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U [secret] -d [secret]"]
interval: 10s
timeout: 5s
retries: 5
data-collector:
build: .
image: hyper-data-collector:latest
container_name: hyper_data
restart: unless-stopped
depends_on:
- postgres
postgres:
condition: service_healthy
env_file:
- .env.docker
environment:
- PYTHONPATH=/app
volumes:
- ./_data:/app/_data
- ./_logs:/app/_logs
- ./secrets:/app/secrets
- /volume1/docker/hyper/backups:/backups
- /volume2/docker/hyper/backups:/backups
networks:
- hyper_net
@ -40,3 +46,6 @@ volumes:
networks:
hyper_net:
driver: bridge
ipam:
config:
- subnet: 172.22.0.0/16