mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Support empty array to return only the base columns
This commit is contained in:
@@ -1202,7 +1202,7 @@ class RPC:
|
|||||||
'exit_short': 0,
|
'exit_short': 0,
|
||||||
}
|
}
|
||||||
if has_content:
|
if has_content:
|
||||||
if selected_cols:
|
if selected_cols is not None:
|
||||||
# Ensure OHLCV columns are always present
|
# Ensure OHLCV columns are always present
|
||||||
cols_set = set(DEFAULT_DATAFRAME_COLUMNS + list(signals.keys()) + selected_cols)
|
cols_set = set(DEFAULT_DATAFRAME_COLUMNS + list(signals.keys()) + selected_cols)
|
||||||
df_cols = [col for col in dataframe_columns if col in cols_set]
|
df_cols = [col for col in dataframe_columns if col in cols_set]
|
||||||
|
|||||||
Reference in New Issue
Block a user