使用 Wolfram|Alpha 获取股票信息
时间序列数据,例如用于股票的收盘价格,是由 Wolfram|Alpha 以日期和值对列表形式返回:
timeseries = WolframAlpha["MSFT closing price", {{"HistoryDaily:Close:FinancialData", 1}, "TimeSeriesData"}];Take[timeseries, -10]DateListPlot[timeseries, PlotTheme -> "Business"]