import tushare as ts
1.滬深股票列表
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,股東人數
2.業績報告主表
ts.get_report_data(2018,3)
code,代碼 name,名稱 esp,每股收益 eps_yoy,每股收益同比(%) bvps,每股凈資產 roe,凈資產收益率(%) epcf,每股現金流量(元) net_profits,凈利潤(萬元) profits_yoy,凈利潤同比(%) distrib,分配方案 report_date,發布日期
3.盈利能力數據
ts.get_profit_data(2018,3)
code,代碼 name,名稱 roe,凈資產收益率(%) net_profit_ratio,凈利率(%) gross_profit_rate,毛利率(%) net_profits,凈利潤(萬元) esp,每股收益 business_income,營業收入(百萬元) bips,每股主營業務收入(元)
4.運營能力數據
ts.get_operation_data(2014,3)
code,代碼 name,名稱 arturnover,應收賬款周轉率(次) arturndays,應收賬款周轉天數(天) inventory_turnover,存貨周轉率(次)
inventory_days,存貨周轉天數(天) currentasset_turnover,流動資產周轉率(次) currentasset_days,流動資產周轉天數(天)
5.成長能力數據
ts.get_growth_data(2014,4)
code,代碼 name,名稱 mbrg,主營業務收入增長率(%) nprg,凈利潤增長率(%) nav,凈資產增長率 targ,總資產增長率 epsg,每股收益增長率 seg,股東權益增長率
6.償債能力數據
ts.get_debtpaying_data(2014,4)
code,代碼 name,名稱 currentratio,流動比率 quickratio,速動比率 cashratio,現金比率 icratio,利息支付倍數 sheqratio,股東權益比率 adratio,股東權益增長率
7.現金流量數據
ts.get_cashflow_data(2014,4)
code,代碼 name,名稱 cf_sales,經營現金凈流量對銷售收入比率 rateofreturn,資產的經營現金流量回報率 cf_nm,經營現金凈流量與凈利潤的比率 cf_liabilities,經營現金凈流量對負債比率 cashflowratio,現金流量比率