Update usage of open_trade_price to open_trade_value

This commit is contained in:
Matthias 2020-12-13 10:33:45 +01:00
parent 7eab33de08
commit 9cd1be8f93

View File

@ -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