chore: revert unnecessary get_custom_data changes

This commit is contained in:
Axel-CH
2025-03-17 18:02:04 -04:00
parent 23187f0c41
commit 0c7a2747d3
2 changed files with 2 additions and 7 deletions

View File

@@ -1145,7 +1145,7 @@ class RPC:
for trade in trades:
# Depending on whether a specific key is provided, retrieve custom data accordingly.
if key:
data = trade.get_custom_data(key=key, retrieval_mode="object")
data = trade.get_custom_data_entry(key=key)
# If data exists, wrap it in a list so the output remains consistent.
custom_data = [data] if data else []
else: