agentsclimarketplace

Eastmoney us stock list

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

查询东财美股列表。当用户需要获取东财美股全量列表(~5700+ 只),含代码、名称、市值、最新价、涨跌幅、市盈率等字段,支持服务端分页,或了解东财美股列表时使用。From its SKILL.md

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

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

2 things to look at

  • runs commandsInstructs the agent to run 3 commands, including `python <RUN_PY> eastmoney-us-stock-list` and 2 more.
  • fetches URLsInstructs the agent to fetch 1 URL, including /api/v1/market/data/eastmoney-us-stock-list.

SKILL.md

3.5 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

查询东财美股列表

接口说明

项目说明
接口名称查询东财美股列表
外部接口/api/v1/market/data/eastmoney-us-stock-list
请求方式GET
适用场景获取东财美股全量列表(~5700+ 只),含代码、名称、市值、最新价、涨跌幅、市盈率等字段,支持服务端分页

请求参数

参数名类型是否必填描述取值示例备注
--pageint否页码1从 1 开始,默认 1
--page_sizeint否每页条数50默认 50
--allflag否返回全量—返回全量数据(不分页)

说明:--page/--page_size 为全量拉取后在客户端切片的分页参数。

执行方式

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

python <RUN_PY> eastmoney-us-stock-list
python <RUN_PY> eastmoney-us-stock-list --page 1 --page_size 50
python <RUN_PY> eastmoney-us-stock-list --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[] 单条记录字段(全部字段按字符串返回):

字段名类型描述列表接口latest-ohlc fallback
secidstring证券 ID,如 105.AAL✅✅
marketstring市场编号,如 105✅✅
codestring股票代码,如 AAL✅✅
namestring股票名称✅✅
market_value_usdstring市值(美元)✅空
latest_pricestring最新价✅取自 close
change_pctstring涨跌幅(%)✅空
volumestring成交量✅✅
amountstring成交额✅✅
pe_ttmstring市盈率 TTM✅空

响应示例

{
  "code": 0,
  "message": "success",
  "data": {
    "pageNum": 1,
    "pageSize": 50,
    "total": 5722,
    "pages": 115,
    "records": [
      {
        "secid": "105.AAL",
        "market": "105",
        "code": "AAL",
        "name": "美国航空",
        "market_value_usd": "1234567890",
        "latest_price": "13.444",
        "change_pct": "-4.59",
        "volume": "64552347",
        "amount": "874794464.0000",
        "pe_ttm": "15.6"
      }
    ]
  }
}

注意事项

  • 所有数值字段均为字符串格式
  • code 为东财美股代码(如 AAL),非 A 股 600000.SH 格式
  • data 在错误或无数据时可能为 null
  • 服务端分页,--all 时内部以 500 条/页全量拉取后合并
  • 不覆盖苹果等美股大盘蓝筹,以东财中小盘和中概股为主

What ships with it: 1 file

3.2 KB alongside SKILL.md, 1 of them executable

scripts/

Keep looking

Skills are one crate of 325,949. 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.