def add_stock_to_class(self, assetclass_id: int, symbol: str):
assert isinstance(symbol, str)<EOL>assert isinstance(assetclass_id, int)<EOL>item = AssetClassStock()<EOL>item.assetclassid = assetclass_id<EOL>item.symbol = symbol<EOL>session = self.open_session()<EOL>session.add(item)<EOL>self.save()<EOL>return item<EOL>
Add a stock link to an asset class