feat: add daily 24h PnL Telegram report and stop tracking .env
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -40,6 +40,7 @@ from deepcoin.ops.hybrid_sim_execution import (
|
||||
sort_hits_sim_order,
|
||||
)
|
||||
from deepcoin.ops.monitor import Monitor
|
||||
from deepcoin.ops.portfolio_report import maybe_record_portfolio_snapshot
|
||||
from deepcoin.paths import (
|
||||
LIVE_SIGNAL_HISTORY_JSON,
|
||||
LIVE_TRADES_LOG,
|
||||
@@ -307,11 +308,13 @@ class LiveTrader(Monitor):
|
||||
)
|
||||
if not rules:
|
||||
print(" monitor_rules 없음 — scripts/04_match_rules.py 실행")
|
||||
maybe_record_portfolio_snapshot(self)
|
||||
return
|
||||
|
||||
fired = evaluate_live_rules(rules, force_refresh=True)
|
||||
if not fired:
|
||||
print(" 발화 없음")
|
||||
maybe_record_portfolio_snapshot(self)
|
||||
return
|
||||
|
||||
try:
|
||||
@@ -360,6 +363,7 @@ class LiveTrader(Monitor):
|
||||
)
|
||||
msg += f"\n[체결] {log['message']}"
|
||||
self._send_coin_msg(msg)
|
||||
maybe_record_portfolio_snapshot(self)
|
||||
|
||||
def run_loop(self, sleep_sec: int) -> None:
|
||||
"""상시 루프."""
|
||||
|
||||
Reference in New Issue
Block a user