fixes: ruff

This commit is contained in:
David Arena
2025-02-13 02:02:15 +01:00
parent bf0a08f5a7
commit 2231ba3f04
3 changed files with 3 additions and 3 deletions

View File

@@ -518,7 +518,7 @@ def list_open_trades_custom_data(rpc: RPC = Depends(get_rpc)):
return rpc._rpc_list_custom_data()
@router.get("/trades/{trade_id}/custom-data", response_model=list[ListCustomData], tags=["info"])
def list_custom_data(trade_id: int, rpc: RPC = Depends(get_rpc)):
def list_custom_data(trade_id: int, rpc: RPC = Depends(get_rpc)):
"""
Fetch custom data for a specific trade.
"""

View File

@@ -1132,7 +1132,7 @@ class RPC:
# Collect custom data
custom_data = []
if key:
data = trade.get_custom_data(key=key)
data = trades.get_custom_data(key=key)
if data:
custom_data = [data]
else:

View File

@@ -496,5 +496,5 @@ class FtRestClient:
trade_id = -1
if trade_id is not None:
params["trade_id"] = trade_id
return self._get("trades/{tradeid}/custom_data", params=params)