Phase 6 (Stufe 4b): Config-Migration aus mongoexport-JSON

- ConfigMigrator.RunFromJson: importiert Accounts, Copytrading-Settings
  (Limit-Felder aus dem Alt-Account-Dokument) und Master-Trader aus
  PolyTraderDB.accounts.json / .trackers.json nach MySQL. Idempotent.
- Robuste JSON-Helfer (mongoexport: Dezimale als Strings, null moeglich).
- CLI: PolyTrader.App --migrate-json [ordner=MongoDB].
- .gitignore: MongoDB/ (Exporte enthalten Secrets) ausgeschlossen.
- Ergebnis: 3 Accounts, 3 Settings, 32 Master-Trader in MySQL.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Richard
2026-07-05 14:54:07 +02:00
co-authored by Claude Opus 4.8
parent e21a3515d1
commit 9dbecc9514
3 changed files with 211 additions and 0 deletions
+3
View File
@@ -25,6 +25,9 @@ server_settings.xml
appsettings.*.json
!appsettings.json
# Mongo-Exporte (enthalten Secrets: PrivateKey, ApiSecret) niemals committen
MongoDB/
# ── Logs & temporäre Dateien ─────────────────────
*.log
*.tmp