feat: initialize trade objects with 0 amount

This way, it'll represent the owned amount
which will be updated once the order fills
pull/10687/head
Matthias 2 years ago
parent d377d8462f
commit b084efdd06

@ -987,7 +987,7 @@ class FreqtradeBot(LoggingMixin):
base_currency=base_currency,
stake_currency=self.config["stake_currency"],
stake_amount=stake_amount,
amount=amount,
amount=0,
is_open=True,
amount_requested=amount_requested,
fee_open=fee,

@ -1099,7 +1099,7 @@ class Backtesting:
open_rate_requested=propose_rate,
open_date=current_time,
stake_amount=stake_amount,
amount=amount,
amount=0,
amount_requested=amount,
fee_open=self.fee,
fee_close=self.fee,

Loading…
Cancel
Save