AkShare-股票数据-A股个股市盈率、市净率和股息率

作者寄语

更新 A 股个股的市盈率、市净率和股息率数据

更新接口

  • "stock_a_lg_indicator" # A 股个股指标
A 股个股指标

接口: stock_a_lg_indicator

目标地址: https://www.legulegu.com/stocklist

描述: 获取乐咕乐股网站-A 股个股指标: 市盈率, 市净率, 股息率

限量: 单次获取指定 stock 的所有数据

输入参数

名称

类型

必选

描述

stock

str

Y

stock="000001"; 参见 stock_a_lg_indicator(stock="all") 获取股票代码

输出参数

名称

类型

默认显示

描述

trade_date

datetime

Y

交易日

pe

float

Y

市盈率

pe_ttm

float

Y

市盈率TTM

pb

float

Y

市净率

ps

float

Y

股息率

ps_ttm

float

Y

股息率TTM

dv_ratio

float

Y

市销率

dv_ttm

float

Y

市销率TTM

total_mv

float

Y

总市值

接口示例

代码语言:javascript
复制
import akshare as ak
stock_a_indicator_df = ak.stock_a_lg_indicator(stock="000001")
print(stock_a_indicator_df)

数据示例

代码语言:javascript
复制
                 pe   pe_ttm      pb  ...  dv_ratio  dv_ttm     total_mv
trade_date                            ...                               
2020-07-13  46.3530  55.9041  6.2434  ...       NaN     NaN  1528399.120
2020-07-10  47.1162  56.8245  6.3462  ...       NaN     NaN  1553564.604
2020-07-09  48.2786  58.2264  6.5027  ...       NaN     NaN  1591890.020
2020-07-08  47.0532  56.7485  6.3377  ...       NaN     NaN  1551486.720
2020-07-07  44.2874  53.4129  5.9651  ...       NaN     NaN  1460290.700
             ...      ...     ...  ...       ...     ...          ...
2019-07-26  75.4664  43.4415  5.6073  ...       NaN     NaN  1331461.892
2019-07-25  77.1806  44.4283  5.7346  ...       NaN     NaN  1361706.648
2019-07-24  72.7053  41.8521  5.4021  ...       NaN     NaN  1282747.056
2019-07-23  66.6988  38.3945  4.9558  ...       NaN     NaN  1176774.972
2019-07-22  74.1447  42.6807  5.5091  ...       NaN     NaN  1308143.416