From 37cb4df14df1acc38f9f64d89cf22ed8199ea261 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Thu, 23 Jan 2025 22:46:59 +0100 Subject: [PATCH] bugfixing --- app/cron_earnings_price_reaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cron_earnings_price_reaction.py b/app/cron_earnings_price_reaction.py index ff9c496..45a8dbd 100644 --- a/app/cron_earnings_price_reaction.py +++ b/app/cron_earnings_price_reaction.py @@ -62,7 +62,7 @@ async def calculate_price_reactions(ticker, filtered_data, price_history): continue # Skip if report date is not found in the price history # Initialize a dictionary for price reactions - iv_value = next((entry['implied_volatility'] for entry in iv_data if entry['date'] == report_date), None) + iv_value = next((entry['iv'] for entry in iv_data if entry['date'] == report_date), None) #if iv_value is None: # continue # Skip if no matching iv_data is found for the report_date