← Back to Skills Marketplace
gaoren36-arch

港股美股分析

by gaoren36-arch · GitHub ↗ · v2.1.0 · MIT-0
cross-platform ⚠ suspicious
482
Downloads
1
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install gaoren-stock-analyst-hk-us
Description
智能股票分析系统 v2.1 - 港股/美股/A股实时行情 + 富途数据源 + 技术指标 + 综合报告(7大板块)
README (SKILL.md)

Stock Analyst - 智能股票分析系统 v2.1

简介

智能股票分析助手,支持港股、美股和A股实时行情查询,采用富途(Futu)作为主要数据源,确保数据准确可靠。

数据源说明

港股数据 (推荐)

美股数据

  • 数据源: Finnhub API
  • 备用: 富途牛牛

A股数据

  • 数据源: 腾讯财经API

功能特性

1. 实时行情 (富途核实)

  • 当前价格、涨跌幅
  • 总市值、市盈率
  • 52周高低点
  • 资金流向

2. 技术指标

  • RSI(14)、MACD
  • 均线(MA5/10/20)
  • 支撑位/阻力位

3. 分析师评级

  • 强力推荐/买入/持有/卖出比例
  • 目标价(最高/平均/最低)
  • 上涨空间计算

4. 综合报告 (7大板块)

  1. 基本信息
  2. 实时行情
  3. 技术指标
  4. 同类公司对比
  5. 行业背景
  6. 综合判断
  7. 操作建议

支持的股票代码

港股 (5位数代码)

股票 代码
波司登 03998
平安好医生 01833
众安在线 06060
京东物流 02618
腾讯 00700
阿里巴巴 09988
美团 03690

美股 (英文代码)

股票 代码
京东 JD
阿里巴巴 BABA
特斯拉 TSLA
苹果 AAPL
英伟达 NVDA

A股 (6位数代码)

股票 代码
中国石油 601857
贵州茅台 600519
宁德时代 300750
比亚迪 002594

使用方式

直接对话分析港股

分析 03998 波司登
查一下01833
分析港股 00700

命令行

python analyze_stock.py 03998

响应示例

=================================================================
  波司登 (03998.HK) 全面分析报告
=================================================================

【基本信息】
  股票名称: 波司登国际控股有限公司
  股票代码: 03998.HK
  行业: 服装/羽绒服

【实时行情】
  当前价格:  HK$4.13
  涨跌额:    +HK$0.04 (+0.98%)
  总市值:    HK$482.53亿
  市盈率TTM: 12.33

【技术指标】
  日涨跌幅: +0.98% (小幅上涨)
  距目标价: +39% (HK$5.74)

【同类公司对比】
  (服装板块对比数据)

【行业背景】
  羽绒服高端化趋势
  国产品牌崛起

【综合判断】
  分析师: 强力推荐 91.43%
  评分: 70/100

【操作建议】
  评级: 建议买入
  目标价: HK$5.74
  止损: HK$3.80

=================================================================

版本历史

  • v2.1.0: 新增富途数据源,港股数据准确可靠
  • v2.0.0: 整合技术指标和新闻分析
  • v1.0.0: 初始版本,支持港股/美股行情查询
Usage Guidance
This skill's code mostly matches its description, but the presence of a repeated hardcoded Finnhub API key and undeclared env vars is a red flag. Before installing or running: 1) Ask the author to confirm the legitimacy of the hardcoded API key and remove it from source; provide a documented FINNHUB_API_KEY env var instead. 2) Treat network access to third‑party endpoints (futunn.com, qt.gtimg.cn, finnhub.io, ai.6551.io, longbridgeapi) as expected but review their privacy/usage policies. 3) If you must run it now, run in an isolated environment (container/VM) and avoid exposing any sensitive local credentials. 4) Prefer a version where keys are not embedded and required environment variables are declared in metadata; verify any external API tokens are your own and not someone else’s leaked key.
Capability Analysis
Type: OpenClaw Skill Name: gaoren-stock-analyst-hk-us Version: 2.1.0 The skill bundle is a functional stock analysis tool for HK, US, and A-shares, providing real-time quotes, technical indicators (RSI, MACD), and news summaries. It utilizes legitimate financial data sources including Tencent Finance (qt.gtimg.cn), Finnhub, and Futu. While the code contains a hardcoded Finnhub API key (d6nucg1r01qse5qn5e90d6nucg1r01qse5qn5e9g) across multiple files like analyze_stock.py and report_v2.py, and fetches news from a third-party API (ai.6551.io), these appear to be intentional choices for out-of-the-box functionality rather than malicious behavior. No evidence of data exfiltration, unauthorized command execution, or harmful prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description match the code: files implement fetching from Tencent (qt.gtimg.cn), Finnhub, and show futu URLs; technical indicator and news modules are present. However the skill includes an embedded Finnhub API key string in many files instead of declaring an environment variable in metadata, which is inconsistent with expected credential handling.
Instruction Scope
SKILL.md and code instruct only to fetch market data, compute indicators, and summarize news. There are no instructions to read arbitrary local files or to exfiltrate system config. The runtime scripts contact multiple external services (qt.gtimg.cn, finnhub.io, ai.6551.io, futunn.com and optional longbridgeapi), which is consistent with a data‑fetching analyzer but expands the network surface.
Install Mechanism
No install spec (instruction-only skill) — the repo contains Python scripts that run with standard dependencies (requests). No remote downloads or archive extraction are present in the manifest. Installation risk is low provided you run code locally and review it first.
Credentials
Metadata declares no required env vars but code uses/accepts credentials: FINNHUB_API_KEY via env is referenced in stock_analyst.py yet multiple files embed a hardcoded token string ('d6nucg1r01qse5q...') directly in source (analyze_stock.py, company_info.py, jd_logistics.py, report_v2.py, test_stock.py, etc.). test_longbridge.py expects LONGBRIDGE_ACCESS_TOKEN in env but this is not documented in metadata. Hardcoded API keys and undeclared environment requirements are disproportionate and inconsistent with the SKILL metadata.
Persistence & Privilege
Skill does not request always:true, does not modify other skills or agent config, and is user‑invocable only. It does perform autonomous network calls when its scripts run, but that is expected for this functionality.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gaoren-stock-analyst-hk-us
  3. After installation, invoke the skill by name or use /gaoren-stock-analyst-hk-us
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.1.0
**港股分析能力大升级,新增富途数据源与七大板块报告!** - 新增富途牛牛(Futu)作为主要数据源,提高港股行情、分析与数据准确性。 - 重大功能扩展:全面综合报告细分为7大板块,包括同类公司对比与行业背景分析。 - 技术指标提升,支持RSI、MACD、均线等多种分析工具。 - 支持分析师评级及目标价、上涨空间等核心量化数据。 - 新增tools/indicator_api.py和tools/news_api.py,拓展数据和分析能力。 - 文档优化,添加README/README_EN,更新使用说明和新特性。
v1.1.0
新增A股支持及多项分析能力。 - 新增对A股实时行情的支持,现覆盖A股、港股、美股 - 增强技术分析,包含支撑/阻力位判断 - 新增综合分析:走势判断、多空力量、风险提示与操作建议 - 更新命令行与示例,A股也可分析 - 更新文档描述及示例,反映最新支持范围
v1.0.0
Initial release: Smart stock analysis assistant for HK and US markets. - Real-time Hong Kong stock quotes (via Tencent API, no key required) - Real-time US stock quotes (via Finnhub, optional API key) - Technical analysis: price range, volume, trend assessment, and more - Real-time finance news and market sentiment analysis - Supports direct chat triggers and command line usage - Covers major HK and US stock codes
Metadata
Slug gaoren-stock-analyst-hk-us
Version 2.1.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is 港股美股分析?

智能股票分析系统 v2.1 - 港股/美股/A股实时行情 + 富途数据源 + 技术指标 + 综合报告(7大板块). It is an AI Agent Skill for Claude Code / OpenClaw, with 482 downloads so far.

How do I install 港股美股分析?

Run "/install gaoren-stock-analyst-hk-us" 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 gaoren36-arch (@gaoren36-arch); the current version is v2.1.0.

💬 Comments