I used LSTM with tushare to predict stock. At first, it hit 4 out of 11 stocks but not stable. Partly because tushare can only extract max 2 years record.
Now, try mpl_finance.
git clone https://github.com/matplotlib/mpl_finance
sudo python setup.py install
Reference: http://www.30daydo.com/article/296