Skip to content

Commit

Permalink
fix: add available options cash logging to schwab task
Browse files Browse the repository at this point in the history
  • Loading branch information
daneisburgh committed Feb 9, 2024
1 parent 111f774 commit 49be30f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invaas/schwab/schwab_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ def get_sell_dte(owned_option, current_dte, expire_date, transaction_history):
time.sleep(10)

available_cash = self.__get_available_cash_to_buy_options()
self.logger.info(f"Available cash to buy options: {available_cash}")

df_options_chain = self.__get_df_options_chain(ticker=ticker)
owned_call_options, owned_put_options = self.__get_owned_options()

Expand Down

0 comments on commit 49be30f

Please sign in to comment.