mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2025-12-30 19:44:25 +01:00
(feat) add stop command
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user