Fix backtesting missing filled amounts in orders.
This commit is contained in:
@@ -531,6 +531,7 @@ class Backtesting:
|
|||||||
price=propose_rate,
|
price=propose_rate,
|
||||||
average=propose_rate,
|
average=propose_rate,
|
||||||
amount=amount,
|
amount=amount,
|
||||||
|
filled=amount,
|
||||||
cost=stake_amount + trade.fee_open
|
cost=stake_amount + trade.fee_open
|
||||||
)
|
)
|
||||||
trade.orders.append(order)
|
trade.orders.append(order)
|
||||||
|
Reference in New Issue
Block a user