From 5f03524d6ac28178fbcee9e240a4e52b58d8cffb Mon Sep 17 00:00:00 2001 From: Simon Moisy Date: Wed, 28 May 2025 02:50:40 +0800 Subject: [PATCH] never fallback to default values for fee_usd --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,