feat: full automation for PancakeSwap BNB Chain with Smart Router & Stable Detection

This commit is contained in:
2025-12-27 21:23:56 +01:00
parent c04eb3f377
commit 90c4453ab4
3 changed files with 199 additions and 55 deletions

View File

@ -67,11 +67,15 @@ logger.addHandler(file_handler)
# --- DECIMAL PRECISION CONFIGURATION ---
getcontext().prec = 50
from clp_config import get_current_config, STATUS_FILE
# --- GET ACTIVE DEX CONFIG ---
CONFIG = get_current_config()
# --- CONFIGURATION ---
COIN_SYMBOL = "ETH"
COIN_SYMBOL = CONFIG["COIN_SYMBOL"]
CHECK_INTERVAL = 1
LEVERAGE = 5
STATUS_FILE = "hedge_status.json"
# Strategy Zones
ZONE_BOTTOM_HEDGE_LIMIT = Decimal("1.0")
@ -814,6 +818,7 @@ class ScalperHedger:
def run(self):
logger.info(f"Starting Hedger Loop ({CHECK_INTERVAL}s)...")
logger.info(f"🔎 Config: Coin={COIN_SYMBOL} | StatusFile={STATUS_FILE}")
while True:
try: