From 4b07720d0bb82a3398df8c3b02caba4ec1f9bd91 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 7 Aug 2023 06:59:16 +0200 Subject: [PATCH] Update test strategy to ensure we're using stake_amount --- tests/strategy/strats/strategy_test_v3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/strategy/strats/strategy_test_v3.py b/tests/strategy/strats/strategy_test_v3.py index 2d5121403..571427fb1 100644 --- a/tests/strategy/strats/strategy_test_v3.py +++ b/tests/strategy/strats/strategy_test_v3.py @@ -197,7 +197,7 @@ class StrategyTestV3(IStrategy): if current_profit < -0.0075: orders = trade.select_filled_orders(trade.entry_side) - return round(orders[0].safe_cost, 0) + return round(orders[0].stake_amount, 0) return None