cc01_regime_watch: ROOT in sys.path, moriva ogni notte dal 03/09 su from src.live.cli (Fixes #10)
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) <noreply@anthropic.com>
This commit is contained in:
@@ -18,11 +18,16 @@ Uso: `uv run python scripts/live/cc01_regime_watch.py`
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
import sys
|
||||||
import time
|
import time
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
ROOT = Path(__file__).resolve().parents[2]
|
||||||
|
sys.path.insert(0, str(ROOT))
|
||||||
|
|
||||||
HL_INFO = "https://api.hyperliquid.xyz/info"
|
HL_INFO = "https://api.hyperliquid.xyz/info"
|
||||||
HOURS_PER_YEAR = 24 * 365
|
HOURS_PER_YEAR = 24 * 365
|
||||||
WARN_ANN = 0.10 # >=10% ann. su media 30g -> WARN
|
WARN_ANN = 0.10 # >=10% ann. su media 30g -> WARN
|
||||||
|
|||||||
Reference in New Issue
Block a user