Show simulation note also in restserver

This commit is contained in:
Matthias 2019-12-15 10:41:57 +01:00
parent c741b67c3c
commit 23d467eb0d
2 changed files with 4 additions and 1 deletions

View File

@ -348,6 +348,7 @@ class RPC:
'total': total,
'symbol': symbol,
'value': value,
'note': 'Simulated balances' if self._freqtrade.config.get('dry_run', False) else ''
}
def _rpc_start(self) -> Dict[str, str]:

View File

@ -335,7 +335,9 @@ class Telegram(RPC):
output = ''
if self._config['dry_run']:
output += (
f"*Warning:*Simulated balances in Dry Mode.\nStarting capital: "
f"*Warning:*Simulated balances in Dry Mode.\n"
"This mode is still experimental!\n"
"Starting capital: "
f"`{self._config['dry_run_wallet']}` {self._config['stake_currency']}.\n"
)
for currency in result['currencies']: