Add bot_name setting

allows naming the bot to simply differentiate when running different
bots.
This commit is contained in:
Matthias
2021-01-16 16:19:49 +01:00
parent 572f5f9186
commit 53c208197d
10 changed files with 10 additions and 0 deletions

View File

@@ -131,6 +131,7 @@ class ShowConfig(BaseModel):
forcebuy_enabled: bool
ask_strategy: Dict[str, Any]
bid_strategy: Dict[str, Any]
bot_name: str
state: str
runmode: str

View File

@@ -129,6 +129,7 @@ class RPC:
'trailing_stop_positive': config.get('trailing_stop_positive'),
'trailing_stop_positive_offset': config.get('trailing_stop_positive_offset'),
'trailing_only_offset_is_reached': config.get('trailing_only_offset_is_reached'),
'bot_name': config.get('bot_name', 'freqtrade'),
'timeframe': config.get('timeframe'),
'timeframe_ms': timeframe_to_msecs(config['timeframe']
) if 'timeframe' in config else '',