Install
openclaw skills install gold-fundamental-analysisFetches and analyzes gold fundamental data from FRED, CFTC, SPDR ETF, and Fed RSS. Used when the user requests gold fundamental analysis, phân tích cơ bản vàng, or gold macro data. Also used by cron jobs for gold trading sessions (Asian/European/US) that need fundamental context. Returns structured JSON with macro indicators, COT positioning, ETF holdings, Fed stance, and upcoming events. The agent MUST execute the Python script to fetch data, then analyze the output to produce Bullish/Bearish/Neutral factors, a Fundamental Score (-100 to +100), and short/medium/long-term outlook.
openclaw skills install gold-fundamental-analysisRun the data fetcher script to get all fundamental data:
python3 scripts/get_gold_fundamental_data.py
The script outputs a JSON object with 5 sections. The agent must then analyze this data and produce a structured fundamental report.
| Source | Data | Stability |
|---|---|---|
| FRED API | Fed rate, CPI, Core CPI, 10Y yield, Real yield, DXY | High (stable API) |
| CFTC COT | Managed Money long/short, net position | High (public file) |
| SPDR GLD (SSGA) | AUM, NAV, estimated gold tonnes | Medium (web scrape) |
| Fed RSS | Monetary policy statements (30-day window) | High (RSS feed) |
| ForexFactory Calendar | Upcoming high/medium-impact USD events via faireconomy.media JSON | High (public JSON) |
After fetching data, analyze these 7 pillars:
After analysis, the agent must produce this structured output in Vietnamese:
📊 PHÂN TÍCH CƠ BẢN VÀNG
━━━━━━━━━━━━━━━━━━━━━━━━
🐂 YẾU TỐ TĂNG GIÁ (Bullish):
• ...
• ...
🐻 YẾU TỐ GIẢM GIÁ (Bearish):
• ...
• ...
⚖️ YẾU TỐ TRUNG LẬP:
• ...
📈 ĐIỂM SỐ CƠ BẢN: +XX/-XX / 100
(thang đo: -100 Bearish cực đoan ↔ +100 Bullish cực đoan)
🔭 TRIỂN VỌNG:
• Ngắn hạn (1-3 ngày): ...
• Trung hạn (1-2 tuần): ...
• Dài hạn (1-3 tháng): ...
🎯 ĐỘ TIN CẬY: XX%
Calculate Fundamental Score (-100 to +100):
Bullish factors (positive points):
Bearish factors (negative points):
Adjustments:
This skill is designed to be used:
The script uses FRED API key 01fa16f50b07eb27740820fd1cdecf50. Override with --fred-key KEY or FRED_API_KEY env var.