Use Wolfram|Alpha to Get Information on a Stock
Time series data, like a stock's closing price, is returned by Wolfram|Alpha as a list of pairs of dates and values:
timeseries = WolframAlpha["MSFT closing price", {{"HistoryDaily:Close:FinancialData", 1}, "TimeSeriesData"}];Take[timeseries, -10]DateListPlot[timeseries, PlotTheme -> "Business"]