Always show freqtrade version
This commit is contained in:
parent
8a91c8e220
commit
0bd6ad55a1
@ -11,7 +11,7 @@ from typing import Any, Dict, List, Optional, Tuple
|
|||||||
|
|
||||||
from schedule import Scheduler
|
from schedule import Scheduler
|
||||||
|
|
||||||
from freqtrade import __version__, constants
|
from freqtrade import constants
|
||||||
from freqtrade.configuration import validate_config_consistency
|
from freqtrade.configuration import validate_config_consistency
|
||||||
from freqtrade.constants import BuySell, Config, LongShort
|
from freqtrade.constants import BuySell, Config, LongShort
|
||||||
from freqtrade.data.converter import order_book_to_dataframe
|
from freqtrade.data.converter import order_book_to_dataframe
|
||||||
@ -52,8 +52,6 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
"""
|
"""
|
||||||
self.active_pair_whitelist: List[str] = []
|
self.active_pair_whitelist: List[str] = []
|
||||||
|
|
||||||
logger.info('Starting freqtrade %s', __version__)
|
|
||||||
|
|
||||||
# Init bot state
|
# Init bot state
|
||||||
self.state = State.STOPPED
|
self.state = State.STOPPED
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ from typing import Any, List
|
|||||||
if sys.version_info < (3, 8): # pragma: no cover
|
if sys.version_info < (3, 8): # pragma: no cover
|
||||||
sys.exit("Freqtrade requires Python version >= 3.8")
|
sys.exit("Freqtrade requires Python version >= 3.8")
|
||||||
|
|
||||||
|
from freqtrade import __version__
|
||||||
from freqtrade.commands import Arguments
|
from freqtrade.commands import Arguments
|
||||||
from freqtrade.exceptions import FreqtradeException, OperationalException
|
from freqtrade.exceptions import FreqtradeException, OperationalException
|
||||||
from freqtrade.loggers import setup_logging_pre
|
from freqtrade.loggers import setup_logging_pre
|
||||||
@ -34,6 +35,7 @@ def main(sysargv: List[str] = None) -> None:
|
|||||||
|
|
||||||
# Call subcommand.
|
# Call subcommand.
|
||||||
if 'func' in args:
|
if 'func' in args:
|
||||||
|
logger.info(f'freqtrade {__version__}')
|
||||||
return_code = args['func'](args)
|
return_code = args['func'](args)
|
||||||
else:
|
else:
|
||||||
# No subcommand was issued.
|
# No subcommand was issued.
|
||||||
|
Loading…
Reference in New Issue
Block a user