← 返回 Skills 市场
Geo Market Impact Mapper
作者
liweijie0709-cmyk
· GitHub ↗
· v1.0.0
· MIT-0
89
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install geo-market-impact-mapper
功能描述
获取并分析原油和黄金期货价格波动,实时检测市场异动并关联地缘事件影响路径。
使用说明 (SKILL.md)
geo-market-impact-mapper
市场影响映射技能。负责获取和分析原油、黄金等大宗商品价格数据,为地缘事件提供市场联动分析。
功能
- 实时价格获取: 通过 Yahoo Finance API 获取原油 (CL=F)、黄金 (GC=F) 期货价格
- 涨跌幅计算: 计算日内涨跌幅百分比
- 双阈值检测:
- 高优先级:原油±3%、黄金±2%
- 观察池:原油±1.2%、黄金±0.8%
- 15 分钟脉冲: 检测短期价格异动
- 市场联动分析: 将商品价格波动与地缘事件关联
数据源
| 商品 | 代码 | 说明 |
|---|---|---|
| 原油 | CL=F |
WTI 原油期货 |
| 黄金 | GC=F |
黄金期货 |
阈值配置
# 高优先级阈值
OIL_HIGH_THRESHOLD = 3.0 # 原油 ±3%
GOLD_HIGH_THRESHOLD = 2.0 # 黄金 ±2%
# 观察池阈值
OIL_WATCH_THRESHOLD = 1.2 # 原油 ±1.2%
GOLD_WATCH_THRESHOLD = 0.8 # 黄金 ±0.8%
使用方法
Python API
from geo_market_impact_mapper import (
get_market_data,
MarketImpact,
is_high_priority,
is_watch_level,
)
# 获取市场数据
market = get_market_data()
print(f"原油:{market.oil_pct:+.2f}%")
print(f"黄金:{market.gold_pct:+.2f}%")
# 检查是否达到高优先级
if market.is_high_priority():
print("⚠️ 市场异动达到高优先级阈值")
# 检查是否达到观察池
if market.is_watch_level():
print("👁️ 市场异动进入观察范围")
# 生成市场影响描述
description = market.get_impact_description()
# → "原油大涨 2.5%,利多石油石化板块,利空航空运输"
MarketImpact 数据结构
@dataclass
class MarketImpact:
oil_pct: float = 0.0 # 原油涨跌幅
gold_pct: float = 0.0 # 黄金涨跌幅
oil_pulse: float = 0.0 # 15 分钟脉冲
gold_pulse: float = 0.0 # 15 分钟脉冲
影响路径映射
| 事件类型 | 影响路径 | 受益板块 | 受损板块 |
|---|---|---|---|
| 地缘冲突 | 原油供应扰动 → 油价上涨 | 石油石化、油运 | 航空、物流 |
| 避险升温 | 黄金需求增加 → 金价上涨 | 有色金属(黄金) | - |
| 央行加息 | 美元走强 → 商品承压 | 银行 | 成长股、有色 |
依赖
requests: HTTP 请求库- Yahoo Finance API (免费,无需 API Key)
相关文件
- 主模块:
geo_market_impact_mapper.py
版本
- v1.0.0: 初始版本,从 smart-geo-push.py v2.0 拆分
安全使用建议
Things to check before installing or running:
- Review the full geo_market_impact_mapper.py (the submission truncated the file). Ensure the remainder does not call other domains, log or transmit data to unknown servers, or read local files/env vars.
- Confirm there are no hidden endpoints, telemetry, or obfuscated code in the missing portion. Search for requests.post, sockets, FTP, IP literals, shorteners, or base64/exec usage.
- Be aware this skill performs network requests to Yahoo Finance; run it in an environment where outbound network access is acceptable and be mindful of rate limits.
- If you need to run it in production, pin and audit the 'requests' dependency and consider running in an isolated container or sandbox until you verify the full source.
- If the author/source is unknown and you require assurances, ask for the complete source and a provenance/maintainer contact before use.
功能分析
Type: OpenClaw Skill
Name: geo-market-impact-mapper
Version: 1.0.0
The geo-market-impact-mapper skill is designed to fetch and analyze commodity prices (oil and gold) from Yahoo Finance to assess market impact. The code in geo_market_impact_mapper.py uses the requests library to access public financial data and performs basic calculations and sector mapping. No malicious behaviors, data exfiltration, or suspicious execution patterns were found.
能力评估
Purpose & Capability
Name/description, SKILL.md and the visible Python code all align: fetching commodity quotes from Yahoo Finance, computing deltas, threshold detection, and mapping to sectors. No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
SKILL.md instructs only to fetch prices from Yahoo Finance and analyze them. The visible code uses requests.get to Yahoo's query1.finance.yahoo.com endpoint and only prints/returns analysis. However the provided source was truncated (the file listing shows more content not included here), so the remaining code should be checked for any instructions that read local files, environment variables, or post data to unexpected endpoints.
Install Mechanism
No install spec (instruction-only skill with an included Python module). Declared dependency is only 'requests' which is proportional to HTTP calls to Yahoo. No downloads from arbitrary URLs or archive extraction are present in the visible content.
Credentials
The skill declares no required environment variables or credentials and the visible code does not reference secrets. That is proportionate to its purpose of fetching public market data.
Persistence & Privilege
always:false and normal invocation; the skill does not request persistent system privileges, nor does the visible code modify other skills or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install geo-market-impact-mapper - 安装完成后,直接呼叫该 Skill 的名称或使用
/geo-market-impact-mapper触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
geo-market-impact-mapper v1.0.0 – Initial Release
- Provides real-time price tracking for crude oil and gold futures via Yahoo Finance API.
- Calculates intraday percentage changes and 15-minute price pulses.
- Implements dual-level threshold alerts for significant and watch-level market moves.
- Maps commodity price fluctuations to potential impacts of geopolitical events.
- Supplies a simple Python API and MarketImpact data structure for integration.
元数据
常见问题
Geo Market Impact Mapper 是什么?
获取并分析原油和黄金期货价格波动,实时检测市场异动并关联地缘事件影响路径。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 89 次。
如何安装 Geo Market Impact Mapper?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install geo-market-impact-mapper」即可一键安装,无需额外配置。
Geo Market Impact Mapper 是免费的吗?
是的,Geo Market Impact Mapper 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Geo Market Impact Mapper 支持哪些平台?
Geo Market Impact Mapper 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Geo Market Impact Mapper?
由 liweijie0709-cmyk(@liweijie0709-cmyk)开发并维护,当前版本 v1.0.0。
推荐 Skills