getStockPrice api improved