mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
updated test_dca_order_adjust: if an exit order is open, a new one with same price, amount and side can't be created.
This commit is contained in:
@@ -483,8 +483,8 @@ def test_dca_order_adjust(default_conf_usdt, ticker_usdt, leverage, fee, mocker)
|
|||||||
freqtrade.process()
|
freqtrade.process()
|
||||||
trade = Trade.get_trades().first()
|
trade = Trade.get_trades().first()
|
||||||
|
|
||||||
assert trade.orders[-2].status == "canceled"
|
assert trade.orders[-2].status == "closed"
|
||||||
assert len(trade.orders) == 6
|
assert len(trade.orders) == 5
|
||||||
assert trade.orders[-1].side == trade.exit_side
|
assert trade.orders[-1].side == trade.exit_side
|
||||||
assert trade.orders[-1].status == "open"
|
assert trade.orders[-1].status == "open"
|
||||||
assert trade.orders[-1].price == 2.02
|
assert trade.orders[-1].price == 2.02
|
||||||
|
|||||||
Reference in New Issue
Block a user