python 擷取yahoo股票資料

來源:互聯網
上載者:User

標籤:python yahoo stock

import pandas as pdfrom pandas_datareader import dataimport datetimestart = datetime.datetime(2016,1,1)end = datetime.date.today()apple = data.DataReader("AAPL", "yahoo", start, end)#type(apple)apple.head()

   Date         Open                High           Low                 Close          Adj Close     Volume


2016-01-04  102.610001  105.370003  102.000000  105.349998  101.790649 67649400 
2016-01-05  105.750000  105.849998  102.410004  102.709999   99.239845 55791000 
2016-01-06  100.559998  102.370003   99.870003  100.699997   97.297760 68457400   
2016-01-07   98.680000  100.129997   96.430000   96.449997   93.191338  81094400  
2016-01-08   98.550003   99.110001   96.760002   96.959999   93.684120 70798000  

   Python股市資料分析教程:http://blog.csdn.net/xiao_lxl/article/details/53780988  

http://blog.csdn.net/xiao_lxl/article/details/53781029              


python 擷取yahoo股票資料

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.