CLI and OpenClaw skill for stock/crypto data analysis
Project description
stock-data-skill
CLI tool and OpenClaw skill for stock/crypto data analysis. Provides 47 data tools covering A-shares, HK stocks, US stocks, and cryptocurrencies with multi-source failover.
Replaces MCP protocol overhead with direct CLI invocation for use in OpenClaw and other AI agent frameworks.
Install
# Via uv (recommended)
uv pip install stock-data-skill
# Via pip
pip install stock-data-skill
Usage
# List all 47 available tools
stock-data --list
# A-share examples
stock-data stock_prices symbol=600519 market=sh limit=60
stock-data stock_realtime symbol=600519 market=sh
stock-data search keyword=茅台
stock-data stock_chip symbol=300058
stock-data stock_fund_flow symbol=300058
# US stock
stock-data stock_overview_us symbol=AAPL
stock-data stock_prices_global symbol=AAPL market=us limit=30
# Crypto
stock-data okx_prices instId=BTC-USDT bar=1D limit=60
stock-data binance_ai_report symbol=BTC
# Market overview
stock-data stock_news_global
stock-data data_source_status
Configuration
Create ~/.stock-data.env with optional API keys:
cp .env.example ~/.stock-data.env
# Edit with your keys
See .env.example for all supported variables.
OpenClaw Skill
This project is also an OpenClaw skill. Install in your workspace:
clawhub install stock-data
Or manually copy to your skills directory:
cp -r SKILL.md references/ ~/.openclaw/skills/stock-data/
Tool Categories
| Category | Count | Examples |
|---|---|---|
| A-Stock Price & Quotes | 3 | stock_prices, stock_realtime, stock_batch_realtime |
| A-Stock Info & Search | 4 | search, stock_info, stock_indicators, get_current_time |
| A-Stock Market Flow | 7 | stock_zt_pool, stock_north_flow, stock_margin_trading |
| A-Stock Analysis | 5 | stock_chip, stock_fund_flow, stock_sector_spot |
| A-Stock Valuation | 7 | stock_valuation_compare, stock_dividend_history |
| A-Stock Shareholders | 4 | stock_locked_shares, stock_top10_holders |
| A-Stock Quant | 3 | stock_screener, trading_signals, backtest_strategy |
| US/HK Stock | 7 | stock_overview_us, stock_financials_us |
| Crypto | 4 | okx_prices, okx_loan_ratios, binance_ai_report |
| Market & System | 3 | stock_news, stock_news_global, data_source_status |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stock_data_skill-0.0.1.tar.gz.
File metadata
- Download URL: stock_data_skill-0.0.1.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21abf46adc7a0d13e5d81dc24c454fa72b7d003a1d97e5f38d8b6162e59f6a2c
|
|
| MD5 |
29659a7106a8024f44ff43e282602afc
|
|
| BLAKE2b-256 |
8e305f5a5668db4e2c734c809b4fcc7b7adadb29b0c469f3bc1edb722749eb69
|
File details
Details for the file stock_data_skill-0.0.1-py3-none-any.whl.
File metadata
- Download URL: stock_data_skill-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b877d17f4b319e07a22df70fe3ca2d1756f7c24597aee5a2bec6f14e2014d54
|
|
| MD5 |
9d8314b6df2d14bb373bc167df394419
|
|
| BLAKE2b-256 |
a2729f10155dbd98e4e1bdb8f2480141e081cb9da093f4d5a27ff2548ba740c8
|