fix: _rpc_list_custom_data send custom-data for all trades if a key is provided

This commit is contained in:
Axel-CH
2025-03-10 16:01:16 -04:00
parent 7770f082c8
commit fac0491658

View File

@@ -1137,7 +1137,7 @@ class RPC:
if key:
data = trade.get_custom_data(key=key)
if data:
custom_data = [data]
custom_data.append(data)
else:
custom_data.extend(trade.get_all_custom_data())