during the recent stock market conference at the palace hotel , for example , the participants were discussing the possibility of allowing foreigners to buy shares on china 's two legal stock markets , in shanghai and shenzhen .