← Back to Skills Marketplace
shenghoo123-png

股票筛选工具

by shenghoo123-png · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
135
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install kay-stock-filter
Description
股票多条件筛选、热门因子管理、Jiuyan 数据查询和抖音热点分析。提供 17 个 CLI 工具覆盖四大模块。
README (SKILL.md)

\r \r

Stock Filter Skills\r

\r 股票多条件筛选、热门因子管理、Jiuyan 数据查询和抖音热点分析。\r \r 当用户提到股票筛选、股票搜索、股票详情、股票对比、批量查询、股票分析、热门因子、因子预设、jiuyan/韭研、抖音热点等话题时,使用本技能。\r \r

Setup\r

\r 安装依赖:\r \r

cd {baseDir} && npm install\r
```\r
\r
需要配置以下环境变量(在 OpenClaw config 中设置 `skills.entries.stock-filter-skills.env`):\r
\r
- `STOCK_API_BASE_URL`: API 服务地址(必填)\r
- `STOCK_API_KEY`: API 认证密钥(必填,联系后端管理员申请)\r
- `STOCK_API_TIMEOUT`: 请求超时秒数(可选,默认 30)\r
\r
## 使用方式\r
\r
所有工具通过 CLI 调用,格式为:\r
\r
```bash\r
node src/main.js \x3Ctool_name> '\x3CJSON 参数>'\r
```\r
\r
无参数的工具直接调用:\r
\r
```bash\r
node src/main.js \x3Ctool_name>\r
```\r
\r
工作目录必须为 `{baseDir}`。\r
\r
## 工具列表\r
\r
### 股票筛选模块\r
\r
**stock_filter** — 多条件筛选股票,支持分页排序\r
\r
```bash\r
node src/main.js stock_filter '{"filters": {"market": ["sh"]}, "page": 1, "page_size": 20, "sort_field": "pe", "sort_order": "asc"}'\r
```\r
\r
参数: filters(object, 筛选条件), page(int, 页码), page_size(int, 每页数量), sort_field(string, 排序字段), sort_order(string, asc/desc)\r
\r
**stock_filter_options** — 获取所有可用筛选维度和选项(无参数)\r
\r
```bash\r
node src/main.js stock_filter_options\r
```\r
\r
使用 stock_filter 前应先调用本工具了解有哪些维度可用。\r
\r
**stock_search** — 按关键词搜索股票\r
\r
```bash\r
node src/main.js stock_search '{"keyword": "贵州茅台", "limit": 10}'\r
```\r
\r
参数: keyword(string, 必填, 搜索关键词), limit(int, 可选, 返回上限默认10)\r
\r
**stock_detail** — 获取股票详细指标(PE/PB/ROE/毛利率/负债率/营收/净利润/大单/概念板块)\r
\r
```bash\r
node src/main.js stock_detail '{"code": "600519"}'\r
```\r
\r
参数: code(string, 必填, 股票代码)\r
\r
**stock_detail_batch** — 批量获取多只股票详情,并发请求提高效率\r
\r
```bash\r
node src/main.js stock_detail_batch '{"codes": ["600519", "000858", "000333"]}'\r
```\r
\r
参数: codes(array, 必填, 股票代码列表)\r
\r
需要同时查看多只股票时使用本工具,比逐个调用 stock_detail 更高效。单只股票失败不影响其他结果。\r
\r
**stock_compare** — 对比多只股票的指标,可指定对比字段\r
\r
```bash\r
node src/main.js stock_compare '{"codes": ["600519", "000858"], "fields": ["pe", "pb", "roe", "gross_margin"]}'\r
```\r
\r
参数: codes(array, 必填, 股票代码列表), fields(array, 可选, 对比字段列表)\r
\r
不传 fields 则返回所有指标。传入 fields 时仅返回指定字段的对比数据,结果更精简易读。\r
\r
### 热门因子模块\r
\r
**hot_factor_list** — 获取因子预设列表(无参数)\r
\r
```bash\r
node src/main.js hot_factor_list\r
```\r
\r
**hot_factor_create** — 创建因子预设\r
\r
```bash\r
node src/main.js hot_factor_create '{"name": "成长股筛选", "factors": ["roe_high", "revenue_growth"]}'\r
```\r
\r
参数: name(string, 必填, 预设名称), factors(array, 必填, 因子ID列表)\r
\r
**hot_factor_update** — 更新因子预设\r
\r
```bash\r
node src/main.js hot_factor_update '{"preset_id": "xxx", "name": "新名称"}'\r
```\r
\r
参数: preset_id(string, 必填), name(string, 可选), factors(array, 可选)\r
\r
**hot_factor_delete** — 删除因子预设(不可恢复)\r
\r
```bash\r
node src/main.js hot_factor_delete '{"preset_id": "xxx"}'\r
```\r
\r
参数: preset_id(string, 必填)\r
\r
**hot_factor_use** — 使用预设并增加计数\r
\r
```bash\r
node src/main.js hot_factor_use '{"preset_id": "xxx"}'\r
```\r
\r
参数: preset_id(string, 必填)\r
\r
**hot_factor_sort** — 调整预设排序\r
\r
```bash\r
node src/main.js hot_factor_sort '{"preset_ids": ["id1", "id2", "id3"]}'\r
```\r
\r
参数: preset_ids(array, 必填, 按期望顺序排列的ID列表)\r
\r
### Jiuyan 数据模块\r
\r
**jiuyan_stock_analysis** — 获取股票综合分析\r
\r
```bash\r
node src/main.js jiuyan_stock_analysis '{"stock_code": "300236"}'\r
```\r
\r
参数: stock_code(string, 必填, 股票代码)\r
\r
**jiuyan_stock_theme** — 获取股票主题/题材数据\r
\r
```bash\r
node src/main.js jiuyan_stock_theme '{"stock_code": "300236"}'\r
```\r
\r
参数: stock_code(string, 必填, 股票代码)\r
\r
**jiuyan_articles** — 批量获取文章详情\r
\r
```bash\r
node src/main.js jiuyan_articles '{"article_ids": "id1,id2,id3"}'\r
```\r
\r
参数: article_ids(string, 必填, 逗号分隔的文章ID)\r
\r
### 抖音热点模块\r
\r
**douyin_hotspot_list** — 获取抖音热点列表\r
\r
```bash\r
node src/main.js douyin_hotspot_list '{"page": 1, "page_size": 20}'\r
```\r
\r
参数: page(int, 可选, 默认1), page_size(int, 可选, 默认20)\r
\r
**douyin_hotspot_detail** — 获取热点详情\r
\r
```bash\r
node src/main.js douyin_hotspot_detail '{"aweme_id": "xxx"}'\r
```\r
\r
参数: aweme_id(string, 必填, 热点ID)\r
\r
## 错误处理\r
\r
所有工具返回 JSON。错误时格式为 `{"error": "描述"}`。常见错误:认证失败(检查 API Key)、连接失败(检查服务是否启动)、参数错误。\r
\r
## 典型使用流程\r
\r
1. 筛选股票:先 stock_filter_options 获取维度 → 再 stock_filter 执行筛选\r
2. 查股票:stock_search 搜索 → stock_detail 查详情\r
3. 批量查询:stock_detail_batch 一次获取多只股票详情\r
4. 对比股票:stock_compare 对比多只股票的关键指标\r
5. 分析股票:jiuyan_stock_analysis 获取分析 → jiuyan_stock_theme 查看主题\r
6. 管理预设:hot_factor_list 查看 → hot_factor_create/update/delete 操作\r
7. 看热点:douyin_hotspot_list 浏览 → douyin_hotspot_detail 查详情\r
Usage Guidance
This skill is coherent but it will send requests (including your STOCK_API_KEY in the X-API-Key header) to whatever URL you configure as STOCK_API_BASE_URL — only set that to a backend you control or trust. Review the source if you have doubts (it is short and readable). Use a scoped/minimal-permission API key, avoid pointing the base URL at third-party or public endpoints, and run npm install in an isolated environment if you need to limit risk. Note: the skill reads a local .env if present, so ensure that file doesn't contain unrelated secrets you don't want shipped to the configured API.
Capability Analysis
Type: OpenClaw Skill Name: kay-stock-filter Version: 0.1.0 The skill bundle provides a comprehensive set of tools for stock market analysis, including filtering, searching, and integration with Jiuyan and Douyin data sources. The implementation uses standard Node.js patterns, interacts with a user-defined API endpoint via environment variables (STOCK_API_BASE_URL, STOCK_API_KEY), and lacks any indicators of malicious intent, data exfiltration, or unauthorized execution. All files, including src/main.js and src/tools.js, are consistent with the stated purpose of stock data management and follow safe coding practices for a CLI-based agent skill.
Capability Assessment
Purpose & Capability
Name/description match the implementation: the repository implements 17 CLI tools that call an API. Required binary (node) and the declared API URL/key are appropriate for this purpose.
Instruction Scope
SKILL.md instructs installing npm deps, setting STOCK_API_BASE_URL and STOCK_API_KEY, and calling node src/main.js <tool>. The runtime instructions only call the provided CLI tools and do not instruct reading unrelated files or exfiltrating data beyond the configured API endpoint.
Install Mechanism
No external download/install spec is present; package.json depends only on dotenv (from npm). The skill expects 'npm install' which pulls a standard, traceable package — no obscure URLs or archive extraction.
Credentials
The skill requires STOCK_API_BASE_URL and uses STOCK_API_KEY as the primary credential (sent as X-API-Key). These environment variables are proportional to a client that calls a remote API. The only optional env is a timeout. The skill does load a local .env file via dotenv (normal), so ensure that .env does not contain unrelated secrets.
Persistence & Privilege
The skill is not force-included (always: false) and does not request elevated platform presence or modify other skills. It behaves as a user-invocable CLI skill and uses only its own configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install kay-stock-filter
  3. After installation, invoke the skill by name or use /kay-stock-filter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial publish
Metadata
Slug kay-stock-filter
Version 0.1.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is 股票筛选工具?

股票多条件筛选、热门因子管理、Jiuyan 数据查询和抖音热点分析。提供 17 个 CLI 工具覆盖四大模块。 It is an AI Agent Skill for Claude Code / OpenClaw, with 135 downloads so far.

How do I install 股票筛选工具?

Run "/install kay-stock-filter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 股票筛选工具 free?

Yes, 股票筛选工具 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 股票筛选工具 support?

股票筛选工具 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 股票筛选工具?

It is built and maintained by shenghoo123-png (@shenghoo123-png); the current version is v0.1.0.

💬 Comments