From 9cd1be8f93f59b332d6317fc777033343ce39036 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Dec 2020 10:33:45 +0100 Subject: [PATCH] Update usage of open_trade_price to open_trade_value --- tests/plugins/test_protections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins/test_protections.py b/tests/plugins/test_protections.py index 82b6e4500..e36900a96 100644 --- a/tests/plugins/test_protections.py +++ b/tests/plugins/test_protections.py @@ -29,7 +29,7 @@ def generate_mock_trade(pair: str, fee: float, is_open: bool, amount=0.01 / open_rate, exchange='bittrex', ) - trade.recalc_open_trade_price() + trade.recalc_open_trade_value() if not is_open: trade.close(open_rate * profit_rate) trade.sell_reason = sell_reason