From 841877746f2f52a35389be7b68f4bdbfcd61185e Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 13 Sep 2024 10:52:25 +0200 Subject: [PATCH] bugfixing --- app/cron_options_gex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cron_options_gex.py b/app/cron_options_gex.py index a578d32..2ea4e14 100644 --- a/app/cron_options_gex.py +++ b/app/cron_options_gex.py @@ -243,7 +243,7 @@ def get_options_chain(option_data_list): # Filter out rows where 'date_expiration' is in the past current_date = datetime.now() - df = df[df['date_expiration'] > current_date] + df = df[df['date_expiration'] >= current_date] # Calculate total premium during grouping df['total_premium'] = df['cost_basis']