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:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user