fix: ~/.hermes路径分裂导致price_monitor冷却失效+去重

This commit is contained in:
知微
2026-07-09 11:13:45 +08:00
parent 0ad793d187
commit bfb3309bc2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ BUY_QTY = 100 # 1手
STOP_LOSS = 1293.88
TAKE_PROFIT = 1456.53
STATE_FILE = os.path.expanduser("~/.hermes/monitor_300308_state.json")
STATE_FILE = "/home/hmo/.hermes/monitor_300308_state.json"
HERMES_SEND = ["hermes", "send", "--to", "xmpp:hmo@yoin.fun"]
+1 -1
View File
@@ -11,7 +11,7 @@ from datetime import datetime
from mo_data import read_decisions
BREACH_PATH = "/home/hmo/.hermes/zone_breach.json"
STATE_PATH = os.path.expanduser("~/.hermes/price_trigger_state.json")
STATE_PATH = "/home/hmo/.hermes/price_trigger_state.json"
EVENTS_PATH = "/home/hmo/web-dashboard/data/price_events.json"
# DB 模块(同步实时价到 mofin.db)