Update parameter type in RPC modules

This commit is contained in:
Matthias
2023-04-26 07:03:28 +02:00
parent b0b036c457
commit d29a425baa
2 changed files with 2 additions and 2 deletions

View File

@@ -741,7 +741,7 @@ class RPC:
return {'status': 'No more entries will occur from now. Run /reload_config to reset.'}
def _rpc_reload_trade_from_exchange(self, trade_id: str) -> Dict[str, str]:
def _rpc_reload_trade_from_exchange(self, trade_id: int) -> Dict[str, str]:
"""
Handler for reload_trade_from_exchange.
Reloads a trade from it's orders, should manual interaction have happened.

View File

@@ -1082,7 +1082,7 @@ class Telegram(RPCHandler):
"""
if not context.args or len(context.args) == 0:
raise RPCException("Trade-id not set.")
trade_id = context.args[0]
trade_id = int(context.args[0])
msg = self._rpc._rpc_reload_trade_from_exchange(trade_id)
await self._send_msg(f"Status: `{msg['status']}`")