Fixed failing test_handle_stoploss_on_exchange_trailing
This commit is contained in:
parent
9a6ffff5eb
commit
9513650ffe
@ -1230,7 +1230,8 @@ def test_create_stoploss_order_insufficient_funds(
|
||||
|
||||
@pytest.mark.parametrize("is_short,bid,ask,stop_price,amt,hang_price", [
|
||||
(False, [4.38, 4.16], [4.4, 4.17], ['2.0805', 4.4 * 0.95], 27.39726027, 3),
|
||||
(True, [1.09, 1.21], [1.1, 1.22], ['2.321', 1.1 * 0.95], 27.39726027, 1.5),
|
||||
# TODO-lev: Should the stoploss be based off the bid for shorts? (1.09)
|
||||
(True, [1.09, 1.21], [1.1, 1.22], ['2.321', 1.09 * 1.05], 27.39726027, 1.5),
|
||||
])
|
||||
@pytest.mark.usefixtures("init_persistence")
|
||||
def test_handle_stoploss_on_exchange_trailing(
|
||||
|
Loading…
Reference in New Issue
Block a user