From b2646fd209f65a397df38229dbae786ee60fcd2a Mon Sep 17 00:00:00 2001 From: cardosofede Date: Fri, 9 Jun 2023 20:45:24 +0100 Subject: [PATCH] (feat) add stop command --- pages/8_🐙_Bot_Orchestration.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/8_🐙_Bot_Orchestration.py b/pages/8_🐙_Bot_Orchestration.py index 429662e..6a5a24a 100644 --- a/pages/8_🐙_Bot_Orchestration.py +++ b/pages/8_🐙_Bot_Orchestration.py @@ -123,7 +123,11 @@ else: client.import_strategy(strategy=strategy) client.stop(strategy) status = st.button("Get Status", key=f"status-{instance_name}") + stop_strategy = st.button("Stop Strategy", key=f"stop-{instance_name}") with c1: if status: status = client.status() st.write(status.msg) + if stop_strategy: + client.stop(strategy) + st.success("Strategy stopped")