agentsclimarketplace

Index description all

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/index-description-all

查询全部指数基础信息(market.ft.tech)。用户问全部指数列表、指数简称全称、指数 PB/PE TTM、支持的指数清单、有哪些指数时使用。From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill index-description-all

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

SKILL.md

2.0 KB, 621 tokens by cl100k_base, as published. Nobody here has run it

指数 - 查询全部指数基础信息

1. 接口描述

项目说明
接口名称查询全部指数基础信息
外部接口GET /api/v1/market/data/index-description-all
请求方式GET
适用场景获取当前服务支持的 A 股相关指数列表及简称、全称、市净率、市盈率(TTM)等基础信息

2. 请求参数

说明:该接口无需请求参数。

参数名类型是否必填描述取值示例备注
---无需参数--

3. 响应说明

返回值为指数基础信息数组。

[
  {
    "symbol": "000001.XSHG",
    "full_name": "上证综合指数",
    "name": "上证指数",
    "pb": 1.5234,
    "pe_ttm": 16.5903
  }
]

IndexDescriptionItem 结构

字段名类型是否可为空说明单位
symbolstring否指数代码,一般为六位代码加交易所后缀(如 000001.XSHG、399001.XSHE、899050.BJSE)-
full_namestring否指数全称-
namestring否指数简称-
pbfloat是市净率(LF),无数据时为 null-
pe_ttmfloat是市盈率(TTM),无数据时为 null-

4. 用法

通过主目录 run.py 调用(无参数):

python <RUN_PY> index-description-all

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径。脚本输出 JSON;请求头已内置 X-Client-Name: ft-claw。

5. 请求示例

GET /api/v1/market/data/index-description-all

6. 注意事项

  • 响应为数组;字段 pb、pe_ttm 可能为 null。
  • 数据更新时间以服务端为准。

What ships with it: 1 file

910 B 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.