Restructured hedger modules: moved CLP hedger and auto hedger into separate folders, updated data fetchers and main app, removed deprecated files

This commit is contained in:
DiTus
2026-07-28 08:26:14 +02:00
parent e1b3c5814b
commit 68e528c1f6
73 changed files with 10139 additions and 1696 deletions

View File

@ -201,7 +201,9 @@ class LiveCandleFetcher:
# This captures the 'coin' variable and adds it to the message data.
callback = lambda msg, c=coin: self.on_message({**msg, 'data': {**msg.get('data',{}), 'coin': c}})
subscription = {"type": "candle", "coin": coin, "interval": "1m"}
self.info.subscribe(subscription, callback)
# --- FIX: Use ws_manager.subscribe directly to bypass SDK's name_to_coin remapping
# for xyz: prefixed coins (e.g., xyz:BRENTOIL, xyz:CL)
self.info.ws_manager.subscribe(subscription, callback)
logging.info(f"Subscribed to 1m candles for {coin}")
time.sleep(0.2)