OpenSquared
b4f3089c58
feat: VaR/PnL schedulers + snapshots DB + page sur bouton
Backend:
- Tables var_snapshots + pnl_snapshots dans SQLite (contexte macro + prix tickers)
- var_service.py : save_var_snapshot, save_pnl_snapshot + fonctions get_*
- var_scheduler.py : threads APScheduler pour VaR (défaut 6h) et PnL (défaut 1h)
- router var.py : /run-now (POST compute+save), /latest, /snapshots, /pnl/run-now,
/pnl/latest, /scheduler/status, /scheduler/config
- main.py : démarrage des deux schedulers au startup
Frontend:
- VaRAnalysis.tsx : plus d'auto-fetch ; charge le dernier snapshot DB au mount ;
bouton "Calculer" → POST /run-now ; erreur backend = message clair ; historique
de snapshots sélectionnables
- Config.tsx : section "Schedulers VaR & PnL" dans l'onglet cycle avec toggle
enable/disable, intervalle, et boutons "Snapshot maintenant"
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 06:21:20 +02:00
..
2026-06-16 20:29:59 +02:00
2026-06-16 20:29:59 +02:00
2026-06-17 17:46:34 +02:00
2026-06-16 20:29:59 +02:00
2026-06-16 20:29:59 +02:00
2026-06-18 10:08:16 +02:00
2026-06-19 12:57:52 +02:00
2026-06-19 19:01:58 +02:00
2026-06-17 12:15:32 +02:00
2026-06-18 13:07:35 +02:00
2026-06-16 20:29:59 +02:00
2026-06-18 13:07:35 +02:00
2026-06-16 20:29:59 +02:00
2026-06-17 16:50:53 +02:00
2026-06-16 20:29:59 +02:00
2026-06-16 20:29:59 +02:00
2026-06-17 00:10:41 +02:00
2026-06-17 17:18:36 +02:00
2026-06-20 06:21:20 +02:00