agentsclimarketplace

Eastmoney stock valuation

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/eastmoney-stock-valuation

FTShare Agent Skills for financial data and investment research workflows|金融数据 Skill 与投研业务 Skill 仓库。

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill eastmoney-stock-valuation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

查询东财个股日估值。当用户需要查询全部 A 股个股的每日估值数据,包括市盈率(TTM/LYR)、市净率、市现率、市销率、PEG、总市值、流通市值、收盘价等;支持单票单日、单票历史区间及全市场查询,或了解东财个股日估值时使用。

SKILL.md

5.4 KB, as published. Nobody here has run it

查询东财个股日估值

接口说明

项目说明
接口名称查询东财个股日估值
外部接口/api/v1/market/data/eastmoney-stock-valuation
请求方式GET
适用场景查询全部 A 股个股的每日估值数据,包括市盈率(TTM/LYR)、市净率、市现率、市销率、PEG、总市值、流通市值、收盘价等;支持单票单日、单票历史区间及全市场查询

请求参数

参数名类型是否必填描述取值示例备注
symbolstring股票代码0000016位数字代码,不传返回全部股票
trade_datestring交易日2026-06-08格式 YYYY-MM-DD;与 start_date/end_date 互斥
start_datestring区间起始日2026-06-01格式 YYYY-MM-DD;与 end_date 同时提供
end_datestring区间结束日2026-06-09格式 YYYY-MM-DD;与 start_date 同时提供
--pageint页码1从 1 开始,默认 1
--page_sizeint每页条数50默认 50,最大 500

查询模式

模式参数说明
全量查询返回全部股票全部日期(⚠️ 数据量极大,建议配合分页)
单票全部历史--symbol返回指定股票全部历史估值
单日全市场--trade_date返回指定交易日全部股票估值
单票单日--symbol --trade_date返回指定股票指定交易日估值
单票历史区间--symbol --start_date --end_date返回指定股票日期区间估值走势

执行方式

通过根目录的 run.py 调用:

python <RUN_PY> eastmoney-stock-valuation --symbol 000001 --page 1 --page_size 10
python <RUN_PY> eastmoney-stock-valuation --symbol 000001 --start_date 2026-06-01 --end_date 2026-06-09
python <RUN_PY> eastmoney-stock-valuation --start_date 2026-06-01 --end_date 2026-06-09 --page 1 --page_size 50
python <RUN_PY> eastmoney-stock-valuation --symbol 000001 --trade_date 2026-06-08
python <RUN_PY> eastmoney-stock-valuation --start_date 2026-06-01 --end_date 2026-06-09 --all

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径,参见主 SKILL.md 的「调用方式」说明。

响应结构

顶层为分页包装对象:

字段名类型描述
codeint业务状态码,成功为 0
messagestring业务消息
dataobject/null分页数据体;无数据时可能为 null
data.pageNumint当前页码
data.pageSizeint每页条数
data.totalint总记录数
data.pagesint总页数
data.recordsarray当前页记录列表

data.records 中每项字段:

字段名类型描述
stock_codestring股票代码,如 000001
stock_namestring股票简称,如 平安银行
trade_datestring交易日期,格式 YYYY-MM-DD
pe_ttmstring市盈率 TTM,无数据时为空
pe_larstring市盈率 LYR(静态),无数据时为空
pb_mrqstring市净率 MRQ,无数据时为空
pcf_ocf_ttmstring市现率 TTM,无数据时为空
pcf_ocf_larstring市现率 LYR,无数据时为空
ps_ttmstring市销率 TTM,无数据时为空
peg_carstringPEG 指标,无数据时为空
total_market_capstring总市值(元),无数据时为空
notlimited_marketcap_astring流通市值(元),无数据时为空
close_pricestring收盘价(元/股),无数据时为空
change_ratestring涨跌幅(%),无数据时为空
total_sharesstring总股本,无数据时为空
free_shares_astring流通股本,无数据时为空

响应示例

{
  "code": 0,
  "message": "success",
  "data": {
    "pageNum": 1,
    "pageSize": 3,
    "total": 33142,
    "pages": 11048,
    "records": [
      {
        "stock_code": "000001",
        "stock_name": "平安银行",
        "trade_date": "2026-06-08",
        "pe_ttm": "4.9709",
        "pe_lar": "5.0207",
        "pb_mrq": "0.4612",
        "pcf_ocf_ttm": "1.1223",
        "pcf_ocf_lar": "0.6777",
        "ps_ttm": "1.6093",
        "peg_car": "-1.1934",
        "total_market_cap": "214047277723.94",
        "notlimited_marketcap_a": "214043775202.59",
        "close_price": "11.03",
        "change_rate": "0.4554",
        "total_shares": "19405918198",
        "free_shares_a": "19405600653"
      }
    ]
  }
}

注意事项

  • 所有数值字段序列化为字符串,避免 JSON 浮点精度问题
  • 无数据的字段输出为空字符串 "",而非 null
  • 部分估值指标(如 PEG、市现率 LYR)可能因财务数据缺失而为空
  • 负值指标(如负市盈率)会正常返回负数字符串
  • 推荐使用 YYYY-MM-DD 日期格式;YYYYMMDD 会返回空列表
  • 当前单日查询可能异常,建议优先使用区间查询

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.