我的技能
获取股票行情与新闻情报并结构化输出。用户要求查询个股/指数、新闻追踪或多源交叉验证时调用。
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 34 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
OpenClaw
Suspicious
high confidencePurpose & Capability
The name/description (market quotes + news intelligence) align with the included Python script and listed data sources (Eastmoney, YFinance, Tushare, Tavily, SerpAPI, etc.). However, the registry metadata declares no required environment variables while SKILL.md and the code require multiple API keys and tokens; that mismatch is unexpected and should be clarified.
Instruction Scope
SKILL.md instructs the agent to run the included Python script and use it to fetch quotes, history, and news. The runtime instructions stay within the advertised scope (data collection, aggregation, structured output) and do not request unrelated system files or broad context collection.
Install Mechanism
There is no installer or external download; this is an instruction-only skill plus a bundled Python file. That is low install risk (nothing fetched/installed at runtime beyond standard HTTP calls made by the script).
Credentials
SKILL.md and the code reference many environment variables/API keys (TAVILY_API_KEY, SERPAPI_API_KEY, BRAVE_API_KEY, BOCHA/MINIMAX base URLs and keys, TUSHARE_TOKEN, etc.). Those credentials are relevant to the data sources — but the registry metadata does not declare them. The discrepancy means a user may be unaware they must provide multiple potentially sensitive API keys; the skill will also raise runtime errors if some required keys are missing for certain sources.
Persistence & Privilege
The skill is not always-enabled and does not claim elevated privileges. It writes a local cache file under .cache/market_intel_cache.json in the skill directory (expected for caching but it does persist data to disk). It does not modify other skills or global agent settings.
What to consider before installing
This skill appears to do what it says (fetch market data and news), but note two issues before installing: (1) The published registry metadata does not list the many API keys and tokens the script actually uses — check SKILL.md and provide only keys for services you trust (Tavily, Serpapi, Brave, Bocha, Minimax, Tushare, etc.). The script will attempt outbound HTTP requests to those provider endpoints. (2) The script creates a local cache file (.cache/market_intel_cache.json) in the skill folder, so it will write to disk. Recommended steps: review market_intel.py in full to confirm there are no unexpected hardcoded endpoints, run the skill in a sandboxed environment or with limited network access if you are unsure, and ask the skill publisher to update the registry manifest to explicitly declare required environment variables and justify each external API endpoint.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
📈 Clawdis
Binspython3
SKILL.md
OpenClaw Market Intel
目标
在用户查询股票、指数或市场主题时,统一拉取多源行情与新闻/搜索情报,输出可执行、可追溯、可降级的结构化结论。
何时调用
- 用户要查个股/指数最新行情与涨跌变化
- 用户要看相关新闻、舆情、催化与风险点
- 用户要求多源交叉验证,避免单源偏差
- 用户要快速生成“行情 + 新闻 + 风险提示”简报
- 用户明确要求输出策略研判(如趋势、风控、仓位倾向)
触发判定
- 用户明确“只查信息/不要建议”时,使用
--mode info - 用户要求“给策略/给判断/给计划”时,使用
--mode strategy - 用户未说明时,默认先输出信息版,再提示可切换策略版
数据源
行情数据源
- Eastmoney(A股/指数优先兜底)
- YFinance
- AkShare
- Tushare
- Pytdx
- Baostock
新闻/搜索数据源
- Tavily
- SerpAPI
- Brave
- Bocha
- MiniMax
- Local Fallback(自动兜底,不阻塞主流程)
AI 分析通道(可选)
- AIHubMix
- Gemini
- OpenAI 兼容
- DeepSeek
- 通义千问
- Claude
执行流程
- 识别用户意图:标的、市场(A/H/US)、时间范围、关注点
- 行情采集:优先多源查询,支持失败回退
- 新闻采集:优先用户指定源,未配置则跳过并降级
- 情报融合:结构化汇总价格、涨跌、均线、事件与风险
- 结论输出:一句话结论、关键风险、数据源与时间戳
- 策略模式:补充策略类型、信号、动作与风险等级
执行脚本
- 脚本路径:
{baseDir}/market_intel.py - 运行环境:Python 3
命令清单
quote:查询多源最新行情history:查询多源历史K线news:查询多源新闻/搜索intel:一键执行行情 + 历史 + 新闻,支持信息/策略双模式
快速示例
python3 {baseDir}/market_intel.py quote --symbol 欧菲光 --sources eastmoney,yfinance
python3 {baseDir}/market_intel.py quote --symbol 中国铝业 --sources yfinance
python3 {baseDir}/market_intel.py news --query "中国铝业 业绩" --sources minimax --max-results 3
python3 {baseDir}/market_intel.py intel --symbol 中国铝业 --query "中国铝业" --mode strategy --strategy cn_review --market-sources yfinance --news-sources minimax
参数说明
--mode info:仅返回事实数据(行情/历史/新闻)--mode strategy:在事实数据基础上增加策略研判--strategy:auto、ma_cross、ma_trend、bias_guard、wave、cn_review、us_regime--bias-threshold:乖离率策略阈值,默认5.0
环境变量
TAVILY_API_KEYSERPAPI_API_KEYBRAVE_API_KEYBOCHA_BASE_URL、BOCHA_API_KEYMINIMAX_BASE_URL、MINIMAX_API_KEYTUSHARE_TOKENMARKET_INTEL_HTTP_RETRIES(默认 3)MARKET_INTEL_HTTP_BACKOFF(默认 0.8)
稳定性与降级策略
- 每个数据源独立返回
ok/error,单源失败不影响整体结构输出 - 行情在关键源不可用时自动执行回退,输出
fallback_source_used - 新闻源未配置时会标记“已跳过”,全部不可用时自动回退
local_fallback - 保留统一 JSON 结构,避免下游消费失败
输出结构
基础字段
symbol/query/timestamp/typeresults.<source>.okresults.<source>.data | error
策略字段(mode=strategy)
strategy_usedsignalssummaryactionrisk_levelmetricsdata_basis
输出模板
## 市场情报简报
- 标的:<代码/名称>(<市场>)
- 时间:<本地时间>
- 一句话结论:<结论>
- 行情概览:
- 最新价:<price>
- 涨跌幅:<pct>
- MA5/10/20:<values>
- 量能变化:<volume_trend>
- 新闻与事件:
- 主要事件 1:<title + source + time>
- 主要事件 2:<title + source + time>
- 舆情倾向:<偏多/中性/偏空>
- 关键位与纪律:
- 支撑/压力:<levels>
- 乖离率风险:<low/medium/high>
- 操作检查:<满足/注意/不满足>
- 数据源:
- 行情:<source_a>, <source_b>
- 新闻:<source_c>, <source_d>
- 免责声明:仅供参考,不构成投资建议。
规则
- 默认多源交叉,不给单源绝对结论
- 明确区分事实与推断
- 若源间冲突,优先报告冲突并降低置信度
- 缺少关键数据时标注“数据不足”
- 输出避免夸张承诺,不使用“稳赚”等措辞
Files
2 totalSelect a file
Select a file to preview.
Comments
Loading comments…
