diff --git a/freqtrade/arguments.py b/freqtrade/arguments.py index a071f0dd6..db5e4cb5e 100644 --- a/freqtrade/arguments.py +++ b/freqtrade/arguments.py @@ -293,7 +293,7 @@ class Arguments(object): Builds and attaches all subcommands :return: None """ - from freqtrade.optimize import backtesting, hyperopt, edge + from freqtrade.optimize import backtesting, hyperopt, edge_cli subparsers = self.parser.add_subparsers(dest='subparser') @@ -305,7 +305,7 @@ class Arguments(object): # Add edge subcommand edge_cmd = subparsers.add_parser('edge', help='edge module') - edge_cmd.set_defaults(func=edge.start) + edge_cmd.set_defaults(func=edge_cli.start) self.optimizer_shared_options(edge_cmd) self.edge_options(edge_cmd) diff --git a/freqtrade/optimize/edge.py b/freqtrade/optimize/edge_cli.py similarity index 100% rename from freqtrade/optimize/edge.py rename to freqtrade/optimize/edge_cli.py diff --git a/freqtrade/tests/edge/test_edge_cli.py b/freqtrade/tests/optimize/test_edge_cli.py similarity index 96% rename from freqtrade/tests/edge/test_edge_cli.py rename to freqtrade/tests/optimize/test_edge_cli.py index e73507a55..f8db3dec4 100644 --- a/freqtrade/tests/edge/test_edge_cli.py +++ b/freqtrade/tests/optimize/test_edge_cli.py @@ -6,7 +6,7 @@ import json from typing import List from freqtrade.edge import Edge from freqtrade.arguments import Arguments -from freqtrade.optimize.edge import (EdgeCli, setup_configuration, start) +from freqtrade.optimize.edge_cli import (EdgeCli, setup_configuration, start) from freqtrade.tests.conftest import log_has, patch_exchange @@ -93,7 +93,7 @@ def test_start(mocker, fee, edge_conf, caplog) -> None: start_mock = MagicMock() mocker.patch('freqtrade.exchange.Exchange.get_fee', fee) patch_exchange(mocker) - mocker.patch('freqtrade.optimize.edge.EdgeCli.start', start_mock) + mocker.patch('freqtrade.optimize.edge_cli.EdgeCli.start', start_mock) mocker.patch('freqtrade.configuration.open', mocker.mock_open( read_data=json.dumps(edge_conf) ))