Added realized profit

Co-Authored-By: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com>
This commit is contained in:
Kavinkumar
2022-03-06 15:22:21 +05:30
parent 6fa6542935
commit 117e966f34
4 changed files with 13 additions and 4 deletions

View File

@@ -401,7 +401,6 @@ class Backtesting:
if stake_amount is not None and stake_amount < 0.0:
amount = -stake_amount / current_rate
logger.info("partial_sell_bt")
if amount > trade.amount:
logger.info(f"Amount is higher than available. {amount} > {trade.amount}")
return trade