Tool invocation method
All data tools are invoked directly via the stock-data CLI:
stock-data <tool_name> key=value key2=value2
The output is CSV-format text (lines starting with# are metadata comment lines), which can be parsed directly. Multiple independent commands can be invoked in parallel.
Common examples
stock-data stock_realtime symbol=600519 market=sh
stock-data stock_prices symbol=300058 market=sz limit=60
stock-data search keyword=茅台
stock-data stock_indicators symbol=600519 market=sh
stock-data stock_chip symbol=300058
stock-data stock_fund_flow symbol=300058
stock-data trading_signals symbol=300058 days=60
stock-data okx_prices instId=BTC-USDT bar=1D limit=60
stock-data stock_news_global
stock-data stock_batch_realtime symbols=600519,000858,601318
stock-data --list # 查看全部可用工具
Analysis workflow
Based on the user's intent, read the corresponding reference document to obtain the detailed analysis workflow:
| User intent | Reference document | Typical trigger words |
|---|---|---|
| Analyze a single stock | references/stock-analyze.md |
"Analyze Moutai", "Take a look at 600519", "How is AAPL doing" |
| Analyze cryptocurrency | references/crypto-analyze.md |
"Analyze BTC", "Bitcoin trend", "ETH market" |
| Market panorama overview | references/market-overview.md |
"Market overview", "Today's market", "A-share market" |
| Portfolio analysis | references/portfolio-analyze.md |
"Analyze holdings", "My stocks", multiple stock tickers |
| Sector rotation analysis | references/sector-analyze.md |
"Analyze the artificial intelligence sector", "Banking sector" |
| Data source health check | references/stock-health-check.md |
"Health check", "Data source status" |
Market identification rules
- 6 pure digits → A-share (starting with 0/3 = sz, starting with 6 = sh)
- 5 digits → Hong Kong stock (hk)
- Pure English letters → US stock (us)
- Cryptocurrency symbols (BTC, ETH, etc.) → automatically completed to BTC-USDT format
Output format conventions
- Tool return data: CSV format, lines starting with
#are metadata - Analysis report(user-facing): Markdown format, including tables, headings, and emphasis
Complete tool list
See references/tools.md for parameter descriptions of all 47 tools.