Add base_currency to allowed webhook fields

closes #6075
This commit is contained in:
Matthias
2021-12-16 20:18:01 +01:00
parent b2fc3e814e
commit ea38b58081
3 changed files with 13 additions and 0 deletions

View File

@@ -60,6 +60,10 @@ class RPCManager:
}
"""
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: