mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user