DiTus 7d702e9cbd Migrate data pipeline from SQLite to PostgreSQL + Docker setup
- Add db.py PostgreSQL abstraction layer (connection, upsert, table mgmt)
- Replace sqlite3 with psycopg2 in: live_candle_fetcher, resampler,
  data_fetcher, fetch_history, import_csv, indicators, base_strategy
- Sanitize table names (colons -> underscores) for PostgreSQL compat
- Replace INSERT OR REPLACE with ON CONFLICT upserts
- Replace pandas to_sql() with batch upsert_candles()
- Add scripts: resampler_loop, gap_detector, backup_runner, cron_scheduler
- Add migrate_sqlite_to_pg.py for one-time data migration
- Add Dockerfile, docker-compose.yml, supervisord.conf
- Add postgres/postgresql.conf tuned for 4GB RAM (Synology DS1513+)
- Add .dockerignore, .env.docker.example, secrets template
- Update requirements.txt (psycopg2-binary), .gitignore
- Add MIGRATION_PLAN.md with full plan and todo list
2026-07-30 22:14:31 +02:00
2025-11-09 22:07:14 +01:00
2025-10-13 11:28:09 +02:00
2025-10-18 15:55:53 +02:00
2025-10-18 15:10:46 +02:00
2025-12-12 23:49:50 +01:00
2025-10-13 11:28:09 +02:00
2025-12-12 23:49:50 +01:00
2025-10-13 11:28:09 +02:00
2025-10-25 19:58:52 +02:00
2025-10-14 19:15:35 +02:00
2025-10-13 11:28:09 +02:00
2025-10-25 19:58:52 +02:00
2025-10-13 11:28:09 +02:00
2025-10-13 19:48:38 +02:00
2025-11-09 22:07:14 +01:00
2025-10-18 15:10:46 +02:00
2025-10-15 18:32:12 +02:00
2025-10-16 13:18:39 +02:00
2025-10-25 19:59:13 +02:00
Description
No description provided
967 KiB
Languages
Python 98.9%
PowerShell 1%