updated example configs

This commit is contained in:
Timothy Pogue 2022-08-28 13:00:52 -06:00
parent 05ca673883
commit 8c4e68b8eb
2 changed files with 6 additions and 5 deletions

View File

@ -46,8 +46,8 @@
}, },
"pairlists": [ "pairlists": [
{ {
"method": "ExternalPairList", "method": "ExternalPairList", // ExternalPairList is required in follower mode
"number_assets": 5, "number_assets": 5, // We can limit the amount of pairs to use from the leaders
} }
], ],
"telegram": { "telegram": {
@ -74,7 +74,9 @@
"url": "ws://localhost:8080/signals/ws", "url": "ws://localhost:8080/signals/ws",
"api_token": "testtoken" "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", "bot_name": "freqtrade",
"initial_state": "running", "initial_state": "running",

View File

@ -373,7 +373,6 @@ class ExternalSignalController(RPCHandler):
# Data is being broadcasted right away as soon as startup, # Data is being broadcasted right away as soon as startup,
# we may not have to send initial data at all. Further testing # we may not have to send initial data at all. Further testing
# required. # required.
await self.send_initial_data(channel) await self.send_initial_data(channel)
# Keep connection open until explicitly closed, and sleep # Keep connection open until explicitly closed, and sleep
@ -434,7 +433,7 @@ class ExternalSignalController(RPCHandler):
async with lock: async with lock:
# Acquire lock so only 1 coro handling at a time # 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) await self._handle_leader_message(data)
except (socket.gaierror, ConnectionRefusedError): except (socket.gaierror, ConnectionRefusedError):