diff --git a/live/node.py b/live/node.py index 689eed4..3ec41e7 100644 --- a/live/node.py +++ b/live/node.py @@ -26,7 +26,6 @@ log = logging.getLogger("ftdt-quant") METRICS_FILE = "/tmp/ftdt-metrics.json" TESTNET_API = "https://api.hyperliquid-testnet.xyz/info" -MAINNET_INFO = "https://api.hyperliquid.xyz/info" TOTAL_EQUITY = 898.0 RESERVE = 398.0 MAKER_FEE = 0.0002 @@ -99,7 +98,7 @@ def write_metrics(addr): "total_equity":TOTAL_EQUITY+total_pnl,"base_equity":TOTAL_EQUITY, "total_pnl":total_pnl,"total_pnl_pct":total_pnl_pct, "reserve":RESERVE,"equity_history":equity_history[-600:], - "strategies":STRATEGIES,"trades":trades_log[-200:],"status":"running", + "strategies":STRATEGIES,"trades":trades_log[-200:],"status":"running","testnet_up":True, "strategy_equity":{k: v[-600:] for k,v in strategy_equity.items()}, "open_positions":[],"open_orders":[] } @@ -180,7 +179,6 @@ async def main(): for inst in perps.values(): client.cache_instrument(inst) except Exception as e: log.warning(f"SDK instrument load failed: {e}") - # Fallback: load from raw API (mainnet) if SDK failed or returned empty if not perps: log.info("Loading perps from mainnet API directly...") try: