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.
Install
# 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
# Health Check
stock-data data_source_status
Configuration
For standalone CLI usage, set environment variables in your shell:
export TUSHARE_TOKEN=your_token
export ALPHA_VANTAGE_API_KEY=your_key
OpenClaw automatically loads environment variables from ~/.openclaw/.env. Copy the example file and fill in your API keys:
cp .env.example ~/.openclaw/.env
# Edit ~/.openclaw/.env with your keys
See .env.example for all supported variables and how to obtain API keys.
OpenClaw Skill
Manually copy to your skills directory:
cp -r SKILL.md references/ ~/.openclaw/workspace/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.2.tar.gz.
File metadata
- Download URL: stock_data_skill-0.0.2.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 |
ed658740514a33cf4daf5f3827f8bc378e8febf52c86647beb43da96a3355ecb
|
|
| MD5 |
b0c0e47e24111252397480d7fd377288
|
|
| BLAKE2b-256 |
897568c42998cb29de3d829b833a0199c650a4aa48cc05d6a7dc2c5b0149a436
|
File details
Details for the file stock_data_skill-0.0.2-py3-none-any.whl.
File metadata
- Download URL: stock_data_skill-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.5 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 |
f68a5fb3260ff5af6a7d5e9244f0430446d87d07497e35c6af9e4f4218f453b1
|
|
| MD5 |
91e494a494796260dc771422b64b0349
|
|
| BLAKE2b-256 |
fdb6ae9d78708a04338df566f44f9d70bb4b34f264987fff1ffa847396e8df97
|