This commit is contained in:
David Arena
2025-02-13 02:03:19 +01:00
parent 2231ba3f04
commit 8182947f29

View File

@@ -7,7 +7,7 @@ from abc import abstractmethod
from collections.abc import Generator, Sequence
from datetime import date, datetime, timedelta, timezone
from math import isnan
from typing import Any, TYPE_CHECKING, Optional
from typing import TYPE_CHECKING, Any
import psutil
from dateutil.relativedelta import relativedelta
@@ -1116,7 +1116,7 @@ class RPC:
"cancel_order_count": c_count,
}
def _rpc_list_custom_data(self, trade_id: Optional[int] = None, key: Optional[str] = None) -> list[dict[str, Any]]:
def _rpc_list_custom_data(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.
"""