查询东财市场日估值

SkillDev tools

Query Eastmoney daily market valuation. Use when the user needs daily valuation data for major A-share market indices (SSE Composite, CSI 300, SZSE Component, ChiNext, STAR 50, BSE 50), including P/E ratio, total market cap, circulating market cap, closing price, and more; supports single-day and ra

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the 查询东财市场日估值 skill

What this skill tells your AI

The instructions your AI receives, as published by ftshare-lab/ftshare-skill in ftshare-market-data/sub-skills/eastmoney-market-valuation/SKILL.md and read by ahel’s review.

接口说明

项目说明
接口名称查询东财市场日估值
外部接口/api/v1/market/data/eastmoney-market-valuation
请求方式GET
适用场景查询 A 股主要市场指数(上证指数、沪深300、深证成指、创业板指、科创50、北证50)的每日估值数据,包括市盈率、总市值、流通市值、收盘点位等;支持单日、区间查询

请求参数

参数名类型是否必填描述取值示例备注
market_codestring市场代码000300000001=上证指数, 000300=沪深300, 399001=深证成指, 399006=创业板指, 000688=科创50, 899050=北证50
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

查询模式

模式参数说明
全量查询返回全部市场全部日期估值
单市场全部历史--market_code返回指定市场全部历史估值
单日全市场--trade_date返回指定交易日全部市场估值
单市场单日--market_code --trade_date返回指定市场指定交易日估值
单市场区间--market_code --start_date --end_date返回指定市场日期区间估值

执行方式

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

python <RUN_PY> eastmoney-market-valuation --market_code 000300 --page 1 --page_size 10
python <RUN_PY> eastmoney-market-valuation --market_code 000001 --start_date 2026-06-01 --end_date 2026-06-09
python <RUN_PY> eastmoney-market-valuation --start_date 2026-06-01 --end_date 2026-06-09 --page 1 --page_size 50
python <RUN_PY> eastmoney-market-valuation --market_code 000300 --trade_date 2026-06-08
python <RUN_PY> eastmoney-market-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 中每项字段:

字段名类型描述
market_codestring市场代码,如 000001=上证指数
market_namestring市场名称,如 上证指数
trade_datestring交易日期,格式 YYYY-MM-DD
pe_ttmstring市盈率 TTM,无数据时为空
total_sharesstring总股本,无数据时为空
free_sharesstring流通股本,无数据时为空
trade_market_valuestring市场总市值(元),无数据时为空
free_market_capstring流通市值(元),无数据时为空
listing_org_numstring上市公司家数,无数据时为空
close_pricestring收盘点位,无数据时为空
change_ratestring涨跌幅(%),无数据时为空

响应示例

{
  "code": 0,
  "message": "success",
  "data": {
    "pageNum": 1,
    "pageSize": 3,
    "total": 36,
    "pages": 12,
    "records": [
      {
        "market_code": "000001",
        "market_name": "上证指数",
        "trade_date": "2026-06-08",
        "pe_ttm": "13.95",
        "total_shares": "484989600",
        "free_shares": "462381100",
        "trade_market_value": "5276746800",
        "free_market_cap": "5065018100",
        "listing_org_num": "1708",
        "close_price": "3959.3378",
        "change_rate": "-1.6982"
      }
    ]
  }
}

注意事项

  • 覆盖 6 个 A 股主要市场指数
  • 市场代码参考:上证指数(000001)、沪深300(000300)、深证成指(399001)、创业板指(399006)、科创50(000688)、北证50(899050)
  • 所有数值字段序列化为字符串,避免 JSON 浮点精度问题
  • 无数据的字段输出为空字符串 "",而非 null
  • 推荐使用 YYYY-MM-DD 日期格式;YYYYMMDD 会返回空列表
  • 当前单日查询可能异常,建议优先使用区间查询

Signals

GitHub stars
64
Forks
13
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
eastmoney-market-valuation
Source
github.com/ftshare-lab/ftshare-skill