Fixed bugs

This commit is contained in:
Sam Germain 2021-10-12 02:24:35 -06:00
parent 952d83ad24
commit 86cbd0039f
2 changed files with 2 additions and 6 deletions

View File

@ -204,9 +204,6 @@ class FreqtradeBot(LoggingMixin):
if self.get_free_open_trades(): if self.get_free_open_trades():
self.enter_positions() self.enter_positions()
if self.trading_mode == TradingMode.FUTURES:
schedule.run_pending()
Trade.commit() Trade.commit()
def process_stopped(self) -> None: def process_stopped(self) -> None:

View File

@ -9,7 +9,6 @@ from unittest.mock import ANY, MagicMock, PropertyMock
import arrow import arrow
import pytest import pytest
import schedule
from freqtrade.constants import CANCEL_REASON, MATH_CLOSE_PREC, UNLIMITED_STAKE_AMOUNT from freqtrade.constants import CANCEL_REASON, MATH_CLOSE_PREC, UNLIMITED_STAKE_AMOUNT
from freqtrade.enums import RPCMessageType, RunMode, SellType, State, TradingMode from freqtrade.enums import RPCMessageType, RunMode, SellType, State, TradingMode
@ -4288,8 +4287,8 @@ def test_get_valid_price(mocker, default_conf_usdt) -> None:
(TradingMode.FUTURES, 32, "2021-09-01 00:00:01", "2021-09-01 08:00:01"), (TradingMode.FUTURES, 32, "2021-09-01 00:00:01", "2021-09-01 08:00:01"),
(TradingMode.FUTURES, 33, "2021-09-01 00:00:01", "2021-09-01 08:00:02"), (TradingMode.FUTURES, 33, "2021-09-01 00:00:01", "2021-09-01 08:00:02"),
(TradingMode.FUTURES, 33, "2021-09-01 00:00:00", "2021-09-01 08:00:02"), (TradingMode.FUTURES, 33, "2021-09-01 00:00:00", "2021-09-01 08:00:02"),
(TradingMode.FUTURES, 34, "2021-08-31 23:59:59", "2021-09-01 08:00:02"), (TradingMode.FUTURES, 33, "2021-08-31 23:59:59", "2021-09-01 08:00:02"),
(TradingMode.FUTURES, 34, "2021-08-31 23:59:59", "2021-09-01 08:00:03"), (TradingMode.FUTURES, 33, "2021-08-31 23:59:59", "2021-09-01 08:00:03"),
]) ])
def test_update_funding_fees(mocker, default_conf, trading_mode, calls, time_machine, def test_update_funding_fees(mocker, default_conf, trading_mode, calls, time_machine,
t1, t2): t1, t2):