send base_currency with messages that need it.

This commit is contained in:
Matthias
2023-03-25 08:16:07 +01:00
parent cbdd86d777
commit c0a57d352f
2 changed files with 2 additions and 4 deletions

View File

@@ -70,10 +70,6 @@ class RPCManager:
"""
if msg.get('type') not in NO_ECHO_MESSAGES:
logger.info('Sending rpc message: %s', msg)
if 'pair' in msg:
msg.update({
'base_currency': self._rpc._freqtrade.exchange.get_pair_base_currency(msg['pair'])
})
for mod in self.registered_modules:
logger.debug('Forwarding message to rpc.%s', mod.name)
try: