diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index d6776b5c8..2423a7fdb 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -861,7 +861,7 @@ class RPC: self._freqtrade.state = State.PAUSED return {"status": "starting bot with trader in paused state..."} - return {"status": "No more entries will occur from now. Run /start to enable entries"} + return {"status": "No more entries will occur from now. Run /start to enable entries."} def _rpc_reload_trade_from_exchange(self, trade_id: int) -> dict[str, str]: """ diff --git a/tests/rpc/test_rpc.py b/tests/rpc/test_rpc.py index cb67d089e..8f4245e50 100644 --- a/tests/rpc/test_rpc.py +++ b/tests/rpc/test_rpc.py @@ -813,12 +813,12 @@ def test_rpc_stopentry(mocker, default_conf) -> None: freqtradebot = get_patched_freqtradebot(mocker, default_conf) patch_get_signal(freqtradebot) rpc = RPC(freqtradebot) - freqtradebot.state = State.RUNNING + freqtradebot.state = State.PAUSED - assert freqtradebot.config["max_open_trades"] != 0 result = rpc._rpc_stopentry() - assert {"status": "No more entries will occur from now. Run /reload_config to reset."} == result - assert freqtradebot.config["max_open_trades"] == 0 + assert { + "status": "No more entries will occur from now. Run /start to enable entries." + } == result def test_rpc_force_exit(default_conf, ticker, fee, mocker) -> None: