Skip to content

Commit d1cec12

Browse files
committed
Add default to spot if trading_mode fails
1 parent f77d848 commit d1cec12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftui/screens/dashboard_screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def update_dashboard_all_open_trades(self):
286286
all_open_df = pd.DataFrame()
287287
for n, cl in client_dict.items():
288288
# if any bots are in futures mode, add leverage column
289-
tm = cl.get_client_config().get("trading_mode")
289+
tm = cl.get_client_config().get("trading_mode", "spot")
290290
if tm != "spot":
291291
trading_mode = tm
292292
if cl.name in client_dfs and "op_data" in client_dfs[cl.name]:

0 commit comments

Comments
 (0)