股票技术分析

v1.8.1

Professional stock & fund technical analysis tool for A-share, HK, US markets — MA, MACD, RSI, KDJ, Bollinger Bands, ATR, scoring system. 股票技术分析工具,支持A股/港股/美股...

1· 167·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 write31bug/stock-analysis-tool.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "股票技术分析" (write31bug/stock-analysis-tool) from ClawHub.
Skill page: https://clawhub.ai/write31bug/stock-analysis-tool
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: python
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

Canonical install target

openclaw skills install write31bug/stock-analysis-tool

ClawHub CLI

Package manager switcher

npx clawhub@latest install stock-analysis-tool
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (technical stock analysis for A/HK/US markets) match the declared requirements: python binary and Python libraries (requests, pandas, numpy, optional akshare/yfinance). No unrelated services or credentials are requested.
Instruction Scope
SKILL.md limits actions to installing Python packages and running the included script. The runtime instructions and CLI options match the script's behavior. The script reads/writes a config file under ~/.stock-analysis (watchlist/storage) and performs outbound requests to public finance APIs — this is expected but worth noting.
Install Mechanism
No automated install spec (instruction-only). The skill includes a Python script and requirements.txt; running it will execute that code. No downloads from third-party URLs or archive extraction are present in the skill metadata. Users should still inspect the bundled script before executing it.
Credentials
The skill requests no environment variables or credentials. Network access to public market data endpoints (Sina, yfinance, 东财/other public APIs) is used and is coherent with the stated purpose. The skill writes its own config file under the user's home directory only.
Persistence & Privilege
always is false and disable-model-invocation is default. The only persistent effect is creating ~/.stock-analysis/config.json for watchlist/defaults — normal for a CLI tool and limited in scope.
Assessment
This skill appears coherent for a CLI stock-analysis tool. Before installing or running it: (1) review the included scripts/stock_analysis.py yourself (it will be executed by Python); (2) be aware it makes outbound requests to public finance APIs (Sina, yfinance, 东财) and may access the network; (3) it will create and modify ~/.stock-analysis/config.json for watchlist/defaults; (4) optional packages (akshare, yfinance) may be suggested — only install what you need. If you require stronger isolation, run the script in a restricted environment (container/VM) or review the full code to confirm there are no unexpected external endpoints or hidden behaviors.

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

Runtime requirements

Binspython
latestvk97bxd6zkmkgysahw2zdmfpd5h84g281
167downloads
1stars
2versions
Updated 2w ago
v1.8.1
MIT-0

📈 Stock Technical Analysis Tool

Multi-market technical analysis CLI tool for stocks and funds — A股, 港股, 美股, ETF/LOF/开放式基金


✨ Feature Highlights | 功能亮点

Feature功能
🌏Multi-MarketA股(沪深)、港股、美股、ETF/LOF/开放式基金
📊Full IndicatorsMA, MACD, RSI, KDJ, Bollinger Bands, ATR, Volume
🔀MACD DivergenceAutomatic bullish/bearish divergence detection
🛡️Dual Data SourcesPrimary + fallback with auto-failover
📈Quant Score0-100 score across 6 dimensions + 5-tier trend
Batch ModeMulti-threaded concurrent analysis
📝Multiple OutputsJSON / Terminal Table / ASCII / File
🔌Offline Test--test mode with mock data

📊 Scoring System | 评分体系

ScoreTrend趋势
≥75🚀 Strong Uptrend强势上涨
60-74📈 Uptrend上涨趋势
40-59↔️ Consolidation震荡整理
25-39📉 Downtrend下跌趋势
<25🔻 Strong Downtrend强势下跌

🚀 Quick Start

Installation

# Core dependencies
pip install pandas numpy requests

# Optional
pip install akshare    # A股/基金备用数据源
pip install yfinance   # 港美股数据源

Usage

# A股
python scripts/stock_analysis.py 600519

# 港股
python scripts/stock_analysis.py 00700 -m hkstock

# 美股
python scripts/stock_analysis.py AAPL -m usstock

# ETF 基金
python scripts/stock_analysis.py 159934 -t fund

# 开放式基金
python scripts/stock_analysis.py 001316 -t fund

# JSON 输出
python scripts/stock_analysis.py 600519 --json --pretty

# 批量分析
python scripts/stock_analysis.py -b 600036,600900,510310

# 离线测试
python scripts/stock_analysis.py 600519 --test

⌨️ Command Reference

ArgumentShortDescription
stock_code-Stock/fund code
--market-mMarket: auto / ashare / hkstock / usstock
--type-tAsset type: stock / fund
--days-dHistory days (default: 60)
--batch-bBatch mode (comma-separated)
--json-jJSON output
--pretty-pPretty-print JSON
--test-Offline test mode
--ascii-ASCII mode (no unicode)
--watchlist-wAnalyze from watchlist
--add-Add to watchlist
--list-lList watchlist
--version-vShow version

🗂️ Project Structure

stock-technical-analysis/
├── _meta.json              # Skill metadata
├── SKILL.md                # This file
├── requirements.txt        # Python dependencies
└── scripts/
    └── stock_analysis.py   # Main script

📡 Data Sources

MarketPrimaryFallback
A股新浪财经 APIakshare
港股/美股yfinanceakshare
ETF/LOF新浪ETF接口东财 API
开放式基金东财 fund_open_fund_info_emLOF历史接口

⚠️ Disclaimer

本工具仅供技术分析参考,不构成投资建议。This tool is for technical analysis reference only, not investment advice.


🔗 Links

Comments

Loading comments...