def find_unallocated_holdings(self):
<EOL>session = self.open_session()<EOL>linked_entities = session.query(AssetClassStock).all()<EOL>linked = []<EOL>for item in linked_entities:<EOL><INDENT>linked.append(item.symbol)<EOL><DEDENT>from .stocks import StocksInfo<EOL>stocks = StocksInfo()<EOL>stocks.logger = self.logger<EOL>holdings = stocks.get_symbols_with_positive_balances()<EOL>non_alloc = []<EOL>index = -<NUM_LIT:1><EOL>for item in holdings:<EOL><INDENT>try:<EOL><INDENT>index = linked.index(item)<EOL>self.logger.debug(index)<EOL><DEDENT>except ValueError:<EOL><INDENT>non_alloc.append(item)<EOL><DEDENT><DEDENT>return non_alloc<EOL>
Identifies any holdings that are not included in asset allocation