Update usage of open_trade_price to open_trade_value
This commit is contained in:
parent
7eab33de08
commit
9cd1be8f93
@ -29,7 +29,7 @@ def generate_mock_trade(pair: str, fee: float, is_open: bool,
|
|||||||
amount=0.01 / open_rate,
|
amount=0.01 / open_rate,
|
||||||
exchange='bittrex',
|
exchange='bittrex',
|
||||||
)
|
)
|
||||||
trade.recalc_open_trade_price()
|
trade.recalc_open_trade_value()
|
||||||
if not is_open:
|
if not is_open:
|
||||||
trade.close(open_rate * profit_rate)
|
trade.close(open_rate * profit_rate)
|
||||||
trade.sell_reason = sell_reason
|
trade.sell_reason = sell_reason
|
||||||
|
Loading…
Reference in New Issue
Block a user