From 93c8a118241d88c7a35ca2d34f4b2e21db9f6c6d Mon Sep 17 00:00:00 2001 From: Axel-CH Date: Fri, 7 Mar 2025 14:08:21 -0400 Subject: [PATCH] fix: update _rpc_list_custom_data to add all custom data only if key is not provided --- freqtrade/rpc/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 31589492b..f1e6b1d12 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -1138,8 +1138,8 @@ class RPC: data = trade.get_custom_data(key=key) if data: custom_data = [data] - - custom_data.extend(trade.get_all_custom_data()) + else: + custom_data.extend(trade.get_all_custom_data()) # Format the results return [