天天看點

python公司基本面_Python讀年報12-獲得公司财務基本面資訊

通過python可以友善的擷取股票的基本面資訊,Tushare -财經資料接口包​www.waditu.cn

python公司基本面_Python讀年報12-獲得公司财務基本面資訊
python公司基本面_Python讀年報12-獲得公司财務基本面資訊

相關工具:Microsoft Visio Code

相關庫:Tushare

滬深股票清單

ts.get_stock_basics()

code,代碼 name,名稱 industry,所屬行業 area,地區 pe,市盈率 outstanding,流通股本(億) totals,總股本(億) totalAssets,總資産(萬) liquidAssets,流動資産

fixedAssets,固定資産 reserved,公積金 reservedPerShare,每股公積金 esp,每股收益 bvps,每股淨資 pb,市淨率 timeToMarket,上市日期

undp,未分利潤 perundp, 每股未配置設定 rev,收入同比(%) profit,利潤同比(%) gpr,毛利率(%) npr,淨利潤率(%) holders,股東人數

業績報告主表

ts.get_report_data(2018,3)

code,代碼 name,名稱 esp,每股收益 eps_yoy,每股收益同比(%) bvps,每股淨資産 roe,淨資産收益率(%) epcf,每股現金流量(元)

net_profits,淨利潤(萬元) profits_yoy,淨利潤同比(%) distrib,配置設定方案 report_date,釋出日期

盈利能力資料

ts.get_profit_data(2018,3)

code,代碼 name,名稱 roe,淨資産收益率(%) net_profit_ratio,淨利率(%) gross_profit_rate,毛利率(%) net_profits,淨利潤(萬元)

esp,每股收益 business_income,營業收入(百萬元) bips,每股主營業務收入(元)

營運能力資料

ts.get_operation_data(2014,3)

code,代碼 name,名稱 arturnover,應收賬款周轉率(次) arturndays,應收賬款周轉天數(天) inventory_turnover,存貨周轉率(次)

inventory_days,存貨周轉天數(天) currentasset_turnover,流動資産周轉率(次) currentasset_days,流動資産周轉天數(天)

成長能力資料

ts.get_growth_data(2014,4)

code,代碼 name,名稱 mbrg,主營業務收入增長率(%) nprg,淨利潤增長率(%) nav,淨資産增長率 targ,總資産增長率

epsg,每股收益增長率 seg,股東權益增長率

償債能力資料

ts.get_debtpaying_data(2014,4)

code,代碼 name,名稱 currentratio,流動比率 quickratio,速動比率 cashratio,現金比率

icratio,利息支付倍數 sheqratio,股東權益比率 adratio,股東權益增長率

現金流量資料

ts.get_cashflow_data(2014,4)

code,代碼 name,名稱 cf_sales,經營現金淨流量對銷售收入比率 rateofreturn,資産的經營現金流量回報率

cf_nm,經營現金淨流量與淨利潤的比率 cf_liabilities,經營現金淨流量對負債比率 cashflowratio,現金流量比率

相關代碼:ShaoZC/Financial-report-acquisition-and-data-processing-with-Python​github.com

python公司基本面_Python讀年報12-獲得公司财務基本面資訊
python公司基本面_Python讀年報12-獲得公司财務基本面資訊

⧖沙鐘工作室出品