feat: add daily 24h PnL Telegram report and stop tracking .env

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dsyoon
2026-06-03 16:46:17 +01:00
parent b0d29353a3
commit ef8fc774f8
14 changed files with 13568 additions and 13433 deletions

View File

@@ -418,3 +418,22 @@ LIVE_HYBRID_BOOTSTRAP_FIRES = _getenv("LIVE_HYBRID_BOOTSTRAP_FIRES", "1").strip(
"True",
"yes",
)
# --- 일일 수익률 텔레그램 (07_daily_pnl_telegram) ---
DAILY_PNL_REPORT_ENABLED = _getenv("DAILY_PNL_REPORT_ENABLED", "1").strip() in (
"1",
"true",
"True",
"yes",
)
DAILY_PNL_REPORT_HOUR = _getenv_int("DAILY_PNL_REPORT_HOUR", "19")
DAILY_PNL_REPORT_MINUTE = _getenv_int("DAILY_PNL_REPORT_MINUTE", "0")
DAILY_PNL_REPORT_TZ = _getenv("DAILY_PNL_REPORT_TZ", "Asia/Seoul")
# 06 루프마다 스냅샷 적재 → 24시간 전 자산 비교 가능
DAILY_PNL_SNAPSHOT_ON_LIVE = _getenv("DAILY_PNL_SNAPSHOT_ON_LIVE", "1").strip() in (
"1",
"true",
"True",
"yes",
)
DAILY_PNL_SNAPSHOT_RETENTION_DAYS = _getenv_int("DAILY_PNL_SNAPSHOT_RETENTION_DAYS", "90")