diff --git a/main.py b/main.py index b7d8a7b..38a7f63 100644 --- a/main.py +++ b/main.py @@ -61,7 +61,7 @@ def process_timeframe_data(min1_df, df, stop_loss_pcts, rule_name, initial_usd, for trade in trades: final_usd *= (1 + trade['profit_pct']) - total_fees_usd = sum(trade.get('fee_usd', 0.0) for trade in trades) + total_fees_usd = sum(trade['fee_usd'] for trade in trades) row = { "timeframe": rule_name,