Skip to content

Commit

Permalink
fix: update current fear greed index timestamp check
Browse files Browse the repository at this point in the history
  • Loading branch information
daneisburgh committed Mar 4, 2024
1 parent 3f8c4e8 commit bf376b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invaas/schwab/schwab_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_sell_dte(owned_option, current_dte, expire_date):
self.logger.info(f"Max strike distiance: {int(max_strike_distance_pct*100)}%")
print()

if current_fear_greed_index_timestamp < (datetime.now(timezone.utc) - timedelta(minutes=15)):
if current_fear_greed_index_timestamp < (datetime.now(timezone.utc) - timedelta(minutes=20)):
self.logger.info("Fear and greed index not updated recently")
elif owned_options_bought_today >= max_buy_amount:
self.logger.info("Reached max allowed owned options bought today")
Expand Down

0 comments on commit bf376b8

Please sign in to comment.