diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 69e3d057d..f74d63408 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -144,7 +144,7 @@ class RPC: } return val - def _rpc_trade_status(self, trade_ids=None) -> List[Dict[str, Any]]: + def _rpc_trade_status(self, trade_ids: List[int] = []) -> List[Dict[str, Any]]: """ Below follows the RPC backend it is prefixed with rpc_ to raise awareness that it is a remotely exposed function diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index c310f9803..99f9a8a91 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -280,9 +280,9 @@ class Telegram(RPCHandler): # Check if there's at least one numerical ID provided. # If so, try to get only these trades. - trade_ids = None + trade_ids = [] if context.args and len(context.args) > 0: - trade_ids = [i for i in context.args if i.isnumeric()] + trade_ids = [int(i) for i in context.args if i.isnumeric()] results = self._rpc._rpc_trade_status(trade_ids=trade_ids)