Updated backtest

This commit is contained in:
Kavinkumar
2022-03-05 14:39:28 +05:30
parent 3fb6010eee
commit 5f50f19e34
4 changed files with 60 additions and 1027 deletions

View File

@@ -640,6 +640,7 @@ def test_backtest__get_sell_trade_entry(default_conf, fee, mocker) -> None:
res = backtesting._get_sell_trade_entry(trade, row_sell)
assert res is not None
assert res.sell_reason == SellType.ROI.value
# Sell at minute 3 (not available above!)
assert res.close_date_utc == datetime(2020, 1, 1, 5, 3, tzinfo=timezone.utc)
sell_order = res.select_order('sell', True)