telegram: move the most important information to the top of sell message
fixed flake error
This commit is contained in:
parent
79552a93fe
commit
9edcb393b6
@ -218,7 +218,7 @@ class Telegram(RPCHandler):
|
|||||||
msg['profit_fiat'] = self._rpc._fiat_converter.convert_amount(
|
msg['profit_fiat'] = self._rpc._fiat_converter.convert_amount(
|
||||||
msg['profit_amount'], msg['stake_currency'], msg['fiat_currency'])
|
msg['profit_amount'], msg['stake_currency'], msg['fiat_currency'])
|
||||||
msg['profit_extra'] = (' ({gain}: {profit_amount:.8f} {stake_currency}'
|
msg['profit_extra'] = (' ({gain}: {profit_amount:.8f} {stake_currency}'
|
||||||
' / {profit_fiat:.3f} {fiat_currency})').format(**msg)
|
' / {profit_fiat:.3f} {fiat_currency})').format(**msg)
|
||||||
else:
|
else:
|
||||||
msg['profit_extra'] = ''
|
msg['profit_extra'] = ''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user