feat: Add Phase 4 advanced metrics and components

- Add advanced metrics dashboard with trade analytics
- Add new trading components (EntryTypeAnalysis, MultiDayPositionTracker, NewsEventTracker, etc.)
- Add strategy mode selector and trend confirmation
- Add risk automation panel and slippage correlation analysis
- Add daily trading plan enhancements with modal components
- Add custom hooks (useApi, useLocalStorage, useAdvancedTradeMetrics)
- Add broker service integration and trading API
- Add test setup and vitest configuration
- Include parquet data files for live market data
- Add comprehensive documentation in docs/ folder
This commit is contained in:
Krikorios
2025-11-27 10:23:58 +02:00
parent b5e2b02cb8
commit 48e60d015f
2019 changed files with 39793 additions and 257 deletions
+24
View File
@@ -0,0 +1,24 @@
from __future__ import annotations
from app.config import settings
from app.streaming.local_feed import local_feed
from app.streaming.metatrader_feed import metatrader_feed
from app.streaming.csv_feed import csv_feed
from app.streaming.historical_replay import historical_replay
# Registry for future providers. For now only the local simulator is available.
_PROVIDER_REGISTRY = {
"historical_replay": historical_replay,
"local_simulator": local_feed,
"metatrader": metatrader_feed,
"csv_replay": csv_feed,
}
provider_key = settings.DATA_PROVIDER.lower().strip()
data_provider = _PROVIDER_REGISTRY.get(provider_key)
if data_provider is None:
raise ValueError(
f"Unsupported DATA_PROVIDER '{settings.DATA_PROVIDER}'. Available: {', '.join(_PROVIDER_REGISTRY)}"
)