feat: implement Part D and E from FIXPLAN
- D1/D2/D2c: Added TraderTraits entity, TraderTraitCalculator, Market Return Metrics (MedianWin, AvgWin, etc.), and trait filters
- D3: Implemented HF-Trader Tiering via IngestMode (Full, Aggregated, SnapshotOnly) and updated TradeHistoryWorker to respect tiers
- E1-E5: Added MasterStatus to Trader, TraderWindowMetrics for rolling analytics, Fingerprint metrics (PriceBandProfile, P50/P90), Copyability aggregates (Volume, Drift, Edge)
- E6: Implemented GET /api/traders/{id}/profile and GET /api/traders/correlation
- Replaced FIXPLAN-2026-07-09.md with FIXPLAN-TODO.md and FIXPLAN-DONE.md
- Cleaned up API docs and plan to use generic terms (removed hardcoded PolyTrader references)
- Added respective EF Core Migrations
This commit is contained in:
+12
-1
@@ -56,6 +56,17 @@ Offene und realisierte Positionen. Je **TraderPositionDto**: `marketId`,
|
||||
`marketName`, `category`, `outcomeToken`, `sharesHeld`, `avgCost`, `realizedPnl`,
|
||||
`unrealizedPnl`, `currentPrice`, `lastTradeExecutedAt`.
|
||||
|
||||
### `GET /api/traders/{id}/profile`
|
||||
**TraderProfileDto**: Erweitertes Profil für die Master-Trader-Analyse. Enthält:
|
||||
`masterStatus` (`None`, `Candidate`, `Master`), `medianHoldDurationHours`, `p50PositionSize`,
|
||||
`p90PositionSize`, `tradesPerWeek`, `medianMarketVolumeUsd`, `medianPostFillDriftPct`,
|
||||
`netEdgeAfterFeesPct`, `priceBandProfileJson`, `windowMetrics` (Array von 60-/120-Tage Metriken).
|
||||
|
||||
### `GET /api/traders/correlation?traderIdA=…&traderIdB=…`
|
||||
Vergleicht zwei Trader. **TraderCorrelationDto**: `commonMarketsCount`,
|
||||
`sameDirectionMarketsCount`, `intersectionRatioA`, `intersectionRatioB`,
|
||||
`agreementRatio` (wie oft in gemeinsamen Märkten die gleiche Richtung gehandelt wurde).
|
||||
|
||||
### `POST /api/traders?platform=Polymarket&wallet=0x…`
|
||||
Trader manuell anlegen (Import + Discovery-Flag). Antwort: Trader-Id.
|
||||
|
||||
@@ -141,6 +152,6 @@ Jobs werden von den Workern abgearbeitet (Worker müssen laufen!). Status:
|
||||
`medianLossReturnPct`, `avgLossReturnPct`, `profitFactor` (D2c).
|
||||
- `GET /api/traders/{id}/profile` — vollständiges Analyse-Profil eines Traders in
|
||||
einem Aufruf (Kennzahlen + Zeitfenster + Traits + Fingerprint-Verteilungen +
|
||||
Kopierbarkeits-Aggregate), gedacht für externe Konsumenten wie PolyTrader (Teil E).
|
||||
Kopierbarkeits-Aggregate), gedacht für externe Konsumenten (Teil E).
|
||||
- Out-of-Sample-Fenster (A/B), Preisband-Profil, Stop-Loss-Klassifikation,
|
||||
Portfolio-/Korrelations-Sicht (Teil E).
|
||||
|
||||
Reference in New Issue
Block a user