Skip to content

Commit

Permalink
Make this output less confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Jan 10, 2024
1 parent 7d7f0fd commit 61a0e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thetagang/portfolio_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 61a0e97

Please sign in to comment.