Fixed getHistData function in Stock Analyzer