From a6a49d9c659abb66b82929ab699afb52ab055598 Mon Sep 17 00:00:00 2001 From: "Adriano (goldrake)" Date: Wed, 16 Sep 2026 19:36:33 +0000 Subject: [PATCH] cc01_regime_watch: ROOT in sys.path, moriva ogni notte dal 03/09 su from src.live.cli (Fixes #10) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eccezione alla regola «PG non si tocca» autorizzata da Adriano il 16/09, solo questo file. Verificato: --help exit 0, giro completo QUIET (BTC 30g +9,0%, ETH +9,4%), test_cli_flag 55 passed. Co-Authored-By: Claude Opus 5 (1M context) --- scripts/live/cc01_regime_watch.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/live/cc01_regime_watch.py b/scripts/live/cc01_regime_watch.py index 8c6efa8..380c9aa 100644 --- a/scripts/live/cc01_regime_watch.py +++ b/scripts/live/cc01_regime_watch.py @@ -18,11 +18,16 @@ Uso: `uv run python scripts/live/cc01_regime_watch.py` from __future__ import annotations import datetime as dt +import sys import time +from pathlib import Path import numpy as np import requests +ROOT = Path(__file__).resolve().parents[2] +sys.path.insert(0, str(ROOT)) + HL_INFO = "https://api.hyperliquid.xyz/info" HOURS_PER_YEAR = 24 * 365 WARN_ANN = 0.10 # >=10% ann. su media 30g -> WARN