agentsclimarketplace

Us basic

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/us-basic

查询美股基础信息列表(股票代码、中英文名称、上市/退市日期)。Use when user asks about 美股有哪些, 全部美股, 美股代码列表, 美股上市日期, 某只美股基本信息/中英文名, 美股基础信息, us stock list, us-basic. 注意:本接口为 native 基础信息(名称/日期),不含最新价/市值/PE(那些用 eastmoney-us-stock-list)。From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill us-basic

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

SKILL.md

3.2 KB, 972 tokens by cl100k_base, as published. Nobody here has run it

查询美股基础信息列表(native)

接口说明

项目说明
接口名称对外接口-查询美股列表
匹配键us-basic
外部接口GET /api/v1/market/data/us/us-basic
请求方式GET
适用场景查询美股基础信息(代码、中英文名称、上市/退市日期),支持全量分页或精确查单只。数据来源 ClickHouse basedata.usstk_securityinfo,约 5315 只。

请求参数

参数名类型是否必填描述取值示例备注
stock_codestring否美股代码(纯代码,不带交易所后缀)NVDA不传返回全部(分页);传则精确查单只(≤1 条)
pageint否页码1默认 1,从 1 开始
page_sizeint否每页条数50默认 50,最大 500
模式必填参数说明
全量分页无返回全部美股(约 5315 只),按 security_code 升序
精确查单股stock_code返回指定股票基础信息(最多 1 条)

执行方式

# 精确查英伟达
python scripts/handler.py --stock_code NVDA
# 分页查询美股列表
python scripts/handler.py --page 1 --page_size 50
# 全量自动翻页
python scripts/handler.py --all

响应结构

{
  "items": [
    {
      "stock_code": "NVDA",
      "name": "英伟达",
      "enname": "Nvidia Corporation",
      "classify": "",
      "list_date": "1999-01-22",
      "delist_date": ""
    }
  ],
  "total_pages": 1,
  "total_items": 1
}

字段说明(UsBasicItem)

字段名类型说明
stock_codestring美股代码(纯代码),如 NVDA、AAPL
namestring中文名称,如 英伟达
ennamestring英文名称,如 Nvidia Corporation
classifystring分类(ADR/GDR/EQ),底表无此信息,固定空字符串
list_datestring上市日期 YYYY-MM-DD
delist_datestring退市日期 YYYY-MM-DD,未退市为空字符串

注意事项

  • 股票代码用纯代码(NVDA),不带交易所后缀(.O=纳斯达克、.N=纽交所)。
  • classify(ADR/GDR/EQ)底表无来源,固定返回空字符串(中概股 ADR 与普通美股结构一致,无法区分)。
  • stock_code 不存在不报错,返回 200 + items: []、total_items: 0。
  • 与 eastmoney-us-stock-list 区别:本接口返回基础信息(名称/上市日期),后者返回东财行情(最新价/市值/涨跌幅/PE)。查"美股有哪些/代码/名称/上市日期"用本接口;查"美股最新价/市值/PE"用 eastmoney-us-stock-list。
  • 财务三表查询用同样的纯代码 stock_code。

What ships with it: 1 file

2.7 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.