fix: formating

This commit is contained in:
David Arena
2025-02-14 12:44:42 +01:00
parent a1a5cab04e
commit ceff757bc6
3 changed files with 6 additions and 2 deletions

View File

@@ -1117,12 +1117,13 @@ class RPC:
}
def _rpc_list_custom_data(
self, trade_id: int | None = None, key: str | None = None) -> list[dict[str, Any]]:
self, trade_id: int | None = None, key: str | None = None
) -> list[dict[str, Any]]:
"""
Fetch custom data for a specific trade, or all open trades if `trade_id` is not provided.
"""
if trade_id is None:
#get all open trades
# get all open trades
trades = Trade.get_open_trades()
else:
trades = Trade.get_trades(trade_filter=[Trade.id == trade_id]).all()