From 61a0e976f9b4d2c89686e45e4ff9c9098fb7023e Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Wed, 10 Jan 2024 10:39:17 -0500 Subject: [PATCH] Make this output less confusing --- thetagang/portfolio_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thetagang/portfolio_manager.py b/thetagang/portfolio_manager.py index 4f1019c82..ba9143085 100644 --- a/thetagang/portfolio_manager.py +++ b/thetagang/portfolio_manager.py @@ -1871,9 +1871,9 @@ def make_order() -> tuple[Optional[Ticker], Optional[LimitOrder]]: # subtract 1 to keep cash balance above target qty -= 1 to_print.append( - f"[green]cash_balance={dfmt(cash_balance)} which is less than " + f"[green](cash_balance + pending_balance)={dfmt(cash_balance + pending_balance)} which is less than " f"(target_cash_balance + pending_balance - sell_threshold)=" - f"{(dfmt(target_cash_balance + pending_balance - sell_threshold))} " + f"{(dfmt(target_cash_balance - sell_threshold))} " f"with pending_balance={dfmt(pending_balance)}" ) if symbol not in portfolio_positions: