Commit Graph

6 Commits

Author SHA1 Message Date
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
5f9109c3a9 size taken from monitored wallet 2025-11-02 22:38:31 +01:00
d650bb5fe2 updated fast orders 2025-11-02 19:56:40 +01:00
93363750ae fixes, old way to handle strategies 2025-10-27 21:54:33 +01:00
541a71d2a6 new strategies 2025-10-25 21:51:25 +02:00
70f3d48336 live market websocket and monitoring wallets 2025-10-20 20:46:48 +02:00