快速获取雅虎股票财务数据模块。
yahoo_ff的Python项目详细描述
从yahoo.com/finance获取财务基础数据的包 韦伯斯特。返回资产负债表、损益表、现金流、密钥 统计、价格和其他信息。
要求
$ pip install -r requirements.txt
安装
$ pip install yahoo_ff
快速获取雅虎股票财务数据模块。
从yahoo.com/finance获取财务基础数据的包 韦伯斯特。返回资产负债表、损益表、现金流、密钥 统计、价格和其他信息。
$ pip install -r requirements.txt
$ pip install yahoo_ff
fromyahoo_ff.yahoo_ffimportyahoo_ffaapl=yahoo_ff('aapl')
将创建一个对象,其中有几个感兴趣的pandas数据帧 可以提取
quarterlySECreports = aapl.sec_quarter annualSECreports = aapl.sec_annual keyStatsOfTheDay = aapl.stats infoAboutCompany = aapl.info priceOfTheDay = aapl.price
这是苹果过去3年财务数据的一个例子(70行)