Skip to content
Back to skills

Supply Chain Companies

ASecurity

查询指定 A 股公司的上游或下游行业及其公司候选,并按相邻行业记录分页返回。可用参数:--trade_code、--direction、--page、--page_size。接口:GET /api/v3/market/data/supply-chain/company-supply-chain-companies。

  • 65 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 20, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add FTShare-Lab/FTShare-skill --skill supply-chain-companies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Supply Chain Companies?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Supply Chain Companies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ftshare-lab-supply-chain-companies/badge)](https://www.skillsdirectory.com/skills/ftshare-lab-supply-chain-companies)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: supply-chain-companies
description: "查询指定 A 股公司的上游或下游行业及其公司候选,并按相邻行业记录分页返回。可用参数:--trade_code、--direction、--page、--page_size。接口:GET /api/v3/market/data/supply-chain/company-supply-chain-companies。"
---

# 供应链公司候选

接口:GET `/api/v3/market/data/supply-chain/company-supply-chain-companies`。参数和响应以 [《供应链公司候选》](https://market.ft.tech/gateway/doc/pages/jhcd4x3y.md) 为准。

请求必须从环境变量 `FTSHARE_API_KEY` 读取凭据,并通过请求头发送 `FTSHARE_API_KEY` 和 `Content-Type: application/json`;缺少凭据时不会发起请求。

## 参数

| 参数 | 必填 | 说明 |
|---|---|---|
| `--trade_code` | 是 | A 股交易代码,必须包含交易所后缀;支持 SH、SZ、BJ。 |
| `--direction` | 是 | 查询方向;`upstream` 表示上游,`downstream` 表示下游,不区分大小写。 |
| `--page` | 否 | 页码,从 `1` 开始,默认 `1`。 |
| `--page_size` | 否 | 每页相邻行业记录数,范围 `1` 至 `20`,默认 `20`。 |

## 返回

- 记录容器:`data.records`
- 分页字段:`pageNum`、`pageSize`、`total`、`pages`
- 记录字段:`industry_name`、`subindustry_names`、`companies`、`company_name`、`trade_code`、`index_memberships`

## 调用示例

```bash
python <RUN_PY> supply-chain-companies --trade_code 600519.SH --direction downstream --page 1
```

Files in this skill

  • SKILL.md717 B
  • scripts/handler.py2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.