07.4.3.19.4 — Journal Runtime Standardization & Export Layer
This commit is contained in:
@@ -148,8 +148,8 @@ class ExecutionEngine:
|
||||
}
|
||||
|
||||
JournalService().log_ui_info(
|
||||
event_type="paper_position_opened",
|
||||
message=f"Paper ENTRY открыта: {side} {state.symbol}",
|
||||
event_type="position_opened",
|
||||
message=f"Позиция {side} открыта: {state.symbol}.",
|
||||
screen="auto",
|
||||
action="paper_execution",
|
||||
payload=payload,
|
||||
@@ -266,8 +266,8 @@ class ExecutionEngine:
|
||||
}
|
||||
|
||||
JournalService().log_ui_info(
|
||||
event_type="paper_position_flipped",
|
||||
message=f"Paper FLIP выполнен: {old_side} → {new_side} {state.symbol}",
|
||||
event_type="position_flipped",
|
||||
message=f"Направление позиции изменено: {old_side} → {new_side}.",
|
||||
screen="auto",
|
||||
action="paper_execution",
|
||||
payload=payload,
|
||||
@@ -337,13 +337,11 @@ class ExecutionEngine:
|
||||
"price_updated_at": exit_execution.updated_at if exit_execution else None,
|
||||
}
|
||||
|
||||
close_reason = forced_reason or "MANUAL"
|
||||
|
||||
JournalService().log_ui_info(
|
||||
event_type="paper_position_closed",
|
||||
message=(
|
||||
f"Paper EXIT закрыта по риску {forced_reason}: {position.side} {state.symbol}"
|
||||
if forced_reason is not None
|
||||
else f"Paper EXIT закрыта: {position.side} {state.symbol}"
|
||||
),
|
||||
event_type="position_closed",
|
||||
message=f"Позиция {position.side} закрыта: {close_reason}.",
|
||||
screen="auto",
|
||||
action="paper_execution",
|
||||
payload=payload,
|
||||
@@ -535,9 +533,9 @@ class ExecutionEngine:
|
||||
"updated_at": position.updated_at,
|
||||
}
|
||||
|
||||
JournalService().log_ui_info(
|
||||
event_type="paper_flip_blocked",
|
||||
message=f"Paper FLIP заблокирован: {reason}",
|
||||
JournalService().log_ui_warning(
|
||||
event_type="position_flip_blocked",
|
||||
message=f"Смена направления позиции заблокирована: {reason}",
|
||||
screen="auto",
|
||||
action="paper_execution",
|
||||
payload=payload,
|
||||
|
||||
Reference in New Issue
Block a user