07.4.4.1.12 — Position Health & Runtime Risk Layer
This commit is contained in:
@@ -25,8 +25,27 @@ class PositionState:
|
||||
# нереализованный PnL
|
||||
unrealized_pnl_usd: float | None = None
|
||||
|
||||
# peak pnl tracking
|
||||
peak_unrealized_pnl_usd: float | None = None
|
||||
peak_pnl_percent: float | None = None
|
||||
|
||||
# lifecycle tracking
|
||||
max_favorable_excursion_percent: float | None = None
|
||||
max_adverse_excursion_percent: float | None = None
|
||||
|
||||
# runtime fatigue tracking
|
||||
fatigue_score: float | None = None
|
||||
fatigue_state: str | None = None
|
||||
|
||||
# position regime memory
|
||||
best_price_seen: float | None = None
|
||||
worst_price_seen: float | None = None
|
||||
|
||||
# время открытия позиции
|
||||
opened_at: str | None = None
|
||||
|
||||
# monotonic timestamp открытия позиции
|
||||
opened_monotonic_at: float | None = None
|
||||
|
||||
# время последнего обновления позиции
|
||||
updated_at: str | None = None
|
||||
Reference in New Issue
Block a user