def get_symbols_with_positive_balances(self) -> List[str]:
from gnucash_portfolio import BookAggregate<EOL>holdings = []<EOL>with BookAggregate() as book:<EOL><INDENT>holding_entities = book.securities.get_all()<EOL>for item in holding_entities:<EOL><INDENT>agg = book.securities.get_aggregate(item)<EOL>balance = agg.get_num_shares()<EOL>if balance > Decimal(<NUM_LIT:0>):<EOL><INDENT>holdings.append(f"<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>self.logger.debug(f"<STR_LIT>")<EOL><DEDENT><DEDENT><DEDENT>return holdings<EOL>
Identifies all the securities with positive balances