From 8c4e68b8eb21e6bb0e04e47befb15a9d2ad40913 Mon Sep 17 00:00:00 2001 From: Timothy Pogue Date: Sun, 28 Aug 2022 13:00:52 -0600 Subject: [PATCH] updated example configs --- config_examples/config_follower.example.json | 8 +++++--- freqtrade/rpc/external_signal/controller.py | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config_examples/config_follower.example.json b/config_examples/config_follower.example.json index 5317c8df2..646310d9a 100644 --- a/config_examples/config_follower.example.json +++ b/config_examples/config_follower.example.json @@ -46,8 +46,8 @@ }, "pairlists": [ { - "method": "ExternalPairList", - "number_assets": 5, + "method": "ExternalPairList", // ExternalPairList is required in follower mode + "number_assets": 5, // We can limit the amount of pairs to use from the leaders } ], "telegram": { @@ -74,7 +74,9 @@ "url": "ws://localhost:8080/signals/ws", "api_token": "testtoken" } - ] + ], + "wait_data_policy": "all", // ['all', 'first', none] defaults to all + "remove_signals_analyzed_df": true, // Remove entry/exit signals from Leader df, Defaults to false }, "bot_name": "freqtrade", "initial_state": "running", diff --git a/freqtrade/rpc/external_signal/controller.py b/freqtrade/rpc/external_signal/controller.py index 29a318b53..2b29cde6f 100644 --- a/freqtrade/rpc/external_signal/controller.py +++ b/freqtrade/rpc/external_signal/controller.py @@ -373,7 +373,6 @@ class ExternalSignalController(RPCHandler): # Data is being broadcasted right away as soon as startup, # we may not have to send initial data at all. Further testing # required. - await self.send_initial_data(channel) # Keep connection open until explicitly closed, and sleep @@ -434,7 +433,7 @@ class ExternalSignalController(RPCHandler): async with lock: # Acquire lock so only 1 coro handling at a time - # as we might call the RPC module in the main thread + # as we call the RPC module in the main thread await self._handle_leader_message(data) except (socket.gaierror, ConnectionRefusedError):