feat: initialize trade objects with 0 amount

This way, it'll represent the owned amount
which will be updated once the order fills
This commit is contained in:
Matthias
2024-09-21 16:24:56 +02:00
parent d377d8462f
commit b084efdd06
2 changed files with 2 additions and 2 deletions

View File

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

View File

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