my skill

v1.0.0

获取A股股票实时行情数据并进行技术分析。适用于投资者查询股票价格、涨跌幅、成交量等行情信息,以及进行MA、RSI、MACD等技术指标分析。

0· 112·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for will1189/stock-acquisition-analysis.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "my skill" (will1189/stock-acquisition-analysis) from ClawHub.
Skill page: https://clawhub.ai/will1189/stock-acquisition-analysis
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install stock-acquisition-analysis

ClawHub CLI

Package manager switcher

npx clawhub@latest install stock-acquisition-analysis
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name and description state: obtain A‑share real‑time quotes and perform technical analysis. The SKILL.md explicitly builds 东方财富 URLs, scrapes real‑time and historical K‑line data, and computes MA/RSI/MACD — all coherent with the stated purpose. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
Instructions require navigating to 东方财富 pages, extracting real‑time fields and historical K‑line data, and taking screenshots for data verification. This is within scope but implies the agent will perform web requests or use a browser tool; the skill does not specify particular endpoints for historical data, nor does it mention respecting robots.txt, rate limits beyond a 3s suggestion, or site Terms of Service. Those are operational/legal considerations rather than technical incoherence.
Install Mechanism
Instruction‑only skill with no install spec and no code files; nothing is downloaded or written during install, so there is no install‑mechanism risk present in the package itself.
Credentials
The skill declares no required environment variables, credentials, or config paths. The SKILL.md does not attempt to access system files or secrets. The requested capability (web scraping + computation) does not appear to need additional credentials, so the absence of env/credentials is proportionate.
Persistence & Privilege
Skill does not request always:true and uses default invocation privileges. There is no indication it modifies other skills or system settings; no persistence/privilege escalation is requested.
Assessment
This skill appears coherent with its stated goal, but before installing consider: (1) it scrapes 东方财富 — check that scraping is allowed by the site's Terms of Service and robots.txt and prefer official APIs if available; (2) implement polite rate limiting and caching to avoid being blocked (the doc suggests a 3s delay but you should enforce it); (3) screenshots or stored data may contain sensitive information — ensure any stored artifacts are handled securely; (4) scraping site structure can change, so results may break and require maintenance. If you plan high-volume queries or commercial use, obtain an API or permission from the data provider.

Like a lobster shell, security has layers — review code before you run it.

latestvk9739wrrezjxb96btabjbk6b8s843gxj
112downloads
0stars
1versions
Updated 3w ago
v1.0.0
MIT-0

A股股票数据获取与分析

本技能帮助用户从东方财富网获取A股股票实时行情数据,并提供技术分析功能。

功能概述

  • 获取股票实时价格、涨跌幅、成交量等基础行情
  • 计算均线系统(MA5、MA10、MA20、MA60)
  • 计算RSI相对强弱指标
  • 计算MACD指数平滑异同移动平均线
  • 生成简单的技术分析报告

使用方法

1. 获取股票实时行情

当用户提供股票代码时(如600519、000001),自动构建东方财富网URL并抓取数据。

示例股票代码格式:

  • 上证股票:600519(贵州茅台)、600000(浦发银行)
  • 深证股票:000001(平安银行)、300750(宁德时代)

2. 数据来源

使用东方财富网行情页面:

  • 实时行情:https://quote.eastmoney.com/sh{股票代码}.html(上证)
  • 实时行情:https://quote.eastmoney.com/sz{股票代码}.html(深证)

数据字段

字段说明
股票名称公司的简称
当前价格最新成交价
涨跌额相比昨日收盘价的变化
涨跌幅变化百分比
成交量当日成交股数
成交额当日成交金额
最高价当日最高价
最低价当日最低价
开盘价当日开盘价
昨收昨日收盘价
市盈率P/E ratio
总市值公司总市值

技术分析

均线系统(MA)

指标说明
MA55日均线,短期趋势
MA1010日均线
MA2020日均线,中期趋势
MA6060日均线,长期趋势

均线分析逻辑:

  • 股价 > MA5 > MA10:强势上涨
  • 股价 < MA5 < MA10:弱势下跌
  • MA5 上穿 MA10:金叉买入信号
  • MA5 下穿 MA10:死叉卖出信号

RSI相对强弱指数

RSI值市场状态
RSI > 80超买区,可能回调
RSI < 20超卖区,可能反弹
RSI 40-60中性区间

MACD指标

指标说明
DIF快线(短期EMA - 长期EMA)
DEA慢线(DIF的EMA)
MACD柱(DIF - DEA) × 2

MACD信号:

  • DIF上穿DEA:买入信号
  • DIF下穿DEA:卖出信号
  • MACD柱由负转正:强势信号
  • MACD柱由正转负:弱势信号

使用示例

示例1:查询股票行情

用户输入:

查询贵州茅台的股票数据,股票代码600519

执行流程:

  1. 构建URL:https://quote.eastmoney.com/sh600519.html
  2. 导航到页面
  3. 提取股票名称、当前价格、涨跌幅、成交量等数据
  4. 返回结构化数据

示例2:技术分析

用户输入:

分析招商银行600036的技术指标

执行流程:

  1. 获取招商银行基础行情数据
  2. 抓取历史K线数据用于计算技术指标
  3. 计算MA5、MA10、MA20、MA60
  4. 计算RSI指标
  5. 计算MACD指标
  6. 生成分析报告

注意事项

  1. 股票代码识别:自动识别上证(6开头)和深证(0、3开头)股票
  2. 数据更新:东方财富数据实时更新,刷新页面即可获取最新数据
  3. 请求频率:建议每次查询间隔至少3秒,避免被限制
  4. 数据验证:获取数据后截图确认数据完整性

错误处理

错误原因解决方案
股票代码不存在代码输入错误检查6位代码是否正确
无法获取数据网络或页面问题重试或更换数据源
数据不完整页面结构变化更新抓取逻辑

Comments

Loading comments...