updated requested change in PR #6545

Co-Authored-By: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com>
This commit is contained in:
Kavinkumar
2022-03-19 12:26:46 +05:30
parent 8a6fe48c2f
commit 13ff413e4f
5 changed files with 73 additions and 46 deletions

View File

@@ -816,7 +816,7 @@ class Backtesting:
sub_trade = order.safe_amount_after_fee != trade.amount
if sub_trade:
order.close_bt_order(current_time)
trade.process_sell_sub_trade(order, is_non_bt=False)
trade.process_sell_sub_trade(order)
trade.recalc_trade_from_orders()
else:
trade.close_date = current_time