TopRank Skills

Home / Claw Skills / Git / GitHub / openclaw-stock-skill
Official OpenClaw rules 36%

openclaw-stock-skill

使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 openclaw-stock-skill 技能。 若已安装,则直接安装 openclaw-stock-skill 技能。

Overview

Skill Key
1018466411/openclaw-stock-data-skill
Author
1018466411
Source Repo
openclaw/skills
Version
-
Source Path
skills/1018466411/openclaw-stock-data-skill
Latest Commit SHA
8b78048984afa71526358117e0044c2a37ce88c7

Extracted Content

SKILL.md excerpt

本技能教会代理如何使用你自建的股票数据服务(线上域名 `https://data.diemeng.chat`),通过 **API Key** 进行鉴权,查询股票的日线、分钟线、财务指标等数据。

> ⚙️ **API Key 配置约定**
>
> - OpenClaw 会按照 [`skills.entries.<key>` 配置](https://docs.openclaw.ai/tools/skills-config) 把 API Key 和自定义配置注入到进程环境变量中。
> - 本技能约定使用环境变量 **`STOCK_API_KEY`** 作为主密钥,并在 `metadata.openclaw.primaryEnv` 中声明,以便通过 `skills.entries.openclaw-stock-skill.apiKey` 统一配置。
> - 推荐的 OpenClaw 配置示例(`~/.openclaw/openclaw.json`):
>
> ```json5
> {
>   skills: {
>     entries: {
>       "openclaw-stock-skill": {
>         enabled: true,
>         // 建议在 OpenClaw UI 的 Skill 参数面板里填写 apiKey,
>         // Gateway 会自动将其写入 STOCK_API_KEY 环境变量
>         apiKey: { source: "env", provider: "default", id: "STOCK_API_KEY" },
>         env: {
>           // 可在这里直接写死,或通过系统环境变量覆盖
>           STOCK_API_KEY: "YOUR_REAL_STOCK_API_KEY"
>         },
>         config: {
>           // 可选:覆盖默认域名
>           baseUrl: "https://data.diemeng.chat"
>         }
>       }
>     }
>   }
> }
> ```
>
> 参考文档:[Skills Config](https://docs.openclaw.ai/tools/skills-config)、[Skills](https://docs.openclaw.ai/tools/skills)

## 总体说明

- **基础域名**:默认使用 `https://data.diemeng.chat`,如存在 `skills.entries.openclaw-stock-skill.config.baseUrl` 则优先使用配置中的 `baseUrl`。
- **鉴权方式**:所有需要权限的接口都必须带上 API Key:
  - 首选 HTTP Header:`apiKey: <STOCK_API_KEY>`(推荐)
  - 兼容 Header:`X-API-Key: <STOCK_API_KEY>`
  - 后端也支持在 JSON body 中携带 `apiKey` 字段,但为了安全与规范,本技能**统一通过 Header 传递**。
- **返回结构**:
  - 大多数接口返回:`{ "code": 200, "msg": "成功", "data": { ... } }`
  - 少数列表类接口直接返回数组或简单结构,实际响应以 JSON 为准。
- **限流与黑名单**:
  - API Key 及 IP 都有严格限流与黑名单逻辑:
    - 无效 API Key 多次尝试会触发封禁(参见后...

README excerpt

# 股票数据 API Skill for OpenClaw

这是一个为 OpenClaw 等 Agent 工具设计的股票数据 Skill,提供了 A 股市场及周边资产的完整数据访问能力。

## 📋 数据分类概览

1. **股票历史数据**  
   - 日 K 线(前复权/不复权)、分钟级历史、日度财务因子、估值、复权因子、历史快照等  
   - 典型函数:`get_daily_data`、`get_history_data`、`get_finance_data`、`get_daily_adj_data`、`get_adj_factor`、`get_stock_snapshot_daily` 等

2. **股票实时数据**  
   - 集合竞价、基础快照、推送快照历史、停牌信息等  
   - 典型函数:`get_call_auction`、`get_basic_snapshot`、`get_stock_snapshot_push_history`、`get_stock_suspension` 等

3. **可转债历史和实时数据**  
   - 可转债日线、分钟级行情、日度指标(纯债价值、转股溢价等)、收盘快照、基础列表等  
   - 典型函数:`get_bond_daily`、`get_bond_history`、`get_bond_indicator_daily`、`get_bond_closing_snapshot`、`get_bond_list` 等

4. **ETF 数据**  
   - ETF 日线与分钟级历史行情  
   - 典型函数:`get_etf_daily`、`get_etf_history`

5. **指数历史数据**  
   - 指数分钟级历史行情(支持多种时间粒度)  
   - 典型函数:`get_index_history`

> 此外还提供 **条件搜索等高级能力**,详见 `stock_api.py` 与 `skill.json`。

## 🚀 快速开始

### 1. 注册账号并开通接口权限

**重要:使用本 Skill 前,必须先注册账号并为需要使用的接口开通对应权限。**

1. 访问 [https://data.diemeng.chat/](https://data.diemeng.chat/)
2. 注册新账号或登录现有账号
3. 在 **个人中心 / 权限或套餐管理** 中,按需开通以下数据大类的访问权限:
   - 股票历史数据(行情、财务、估值等)
   - 股票实时数据(集合竞价、基础快照等)
   - 可转债数据(历史 & 实时)
   - ETF 数据
   - 指数历史数据
4. 在 **API 管理** 中创建并复制您的 **API Key**

> 如果未为某一类接口开通权限,即使配置了 API Key,也会收到 403 或权限不足的错误。

### 2. 在 Skill 页面配置 API Key(推荐)

在 OpenClaw / ClawHub 中启用本 Skill 时:

1. 打开 `openclaw-stock-skill` 的 Skill 配置页面
2. 在参数面板中将从 `data.diemeng.chat` 获取的 **API Key** 填入对应字段(通常是 `apiKey` 或 `STOCK_API_KEY`)
3. 保存后...

Related Claw Skills

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

capt-marbles

geo-optimization

★ 1

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.

carlzhao007

feishu-process-feedback

★ 0

飞书消息自动处理与进度反馈技能。安装后后台运行,监听飞书任务消息并自动创建独立进程处理。 在处理前后发送实时进度反馈(任务确认、进度百分比、完成通知)。 支持任务类型识别、智能解析、错误重试、并发控制、状态持久化。 使用场景:飞书自动化工作流、任务进度追踪、批量任务处理、需要实时反馈的场景。

carlulsoe

parakeet-stt

★ 0

Local speech-to-text with NVIDIA Parakeet TDT 0.6B v3 (ONNX on CPU). 30x faster than Whisper, 25 languages, auto-detection, OpenAI-compatible API. Use when transcribing audio files, converting speech to text, or processing voice recordings locally without cloud APIs.

caoyumin97

structure-thinking

★ 0

Structured problem analysis and communication using system mapping and hierarchical logic. Use when a request involves messy, multi-factor problems, root-cause analysis, intervention design, feedback loops or delays, or when a clear top-line recommendation with logically grouped support is required.

cartoonitunes

bottyfans

★ 0

BottyFans agent skill for autonomous creator monetization. Lets AI agents register, build a profile, publish posts (public, subscriber-only, or pay-to-unlock), upload media, accept USDC subscriptions and tips on Base, send and receive DMs, track earnings, and appear on the creator leaderboard. Use this skill when an agent needs to monetize content, interact with fans, manage a creator profile, handle payments in USDC, or operate as an autonomous creator on the BottyFans platform.