Yahoo Finance FOREX
by @nazimboudeffa
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
clawhub install yahoo-finance-forexπ About This Skill
name: yahoo-finance-forex description: Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context. homepage: https://github.com/nazimboudeffa/openclaw-yahoo-finance-forex metadata: openclaw: emoji: "π±" requires: bins: ["python3"] install: - id: pip kind: pip packages: ["yfinance>=0.2.40"] label: "Install yfinance"
Yahoo Finance FOREX
Analyze major FOREX pairs using Yahoo Finance data: news, market data, sentiment analysis.
When to Use This Skill
Supported Currency Pairs
7 Major Pairs:
Quick Start
Fetch FOREX News
python3 scripts/fetch_forex_news.py EURUSD --limit 10
Output:
{
"pair": "EURUSD",
"current_rate": 1.10250,
"change_pct": 0.136,
"news": [
{
"title": "ECB maintains hawkish stance on rates",
"published": "2026-02-02 14:30:00",
"publisher": "Reuters"
}
],
"sentiment": {
"pair_sentiment": 3,
"recommendation": "BUY"
}
}
Workflow
1. User Asks About FOREX
User: "What's happening with EUR/USD?"
Your Action:
1. Run: python3 scripts/fetch_forex_news.py EURUSD --limit 8
2. Parse the JSON output
3. Analyze the sentiment and news
4. Provide a summary with:
- Current rate and change
- Key news headlines
- Sentiment analysis (bullish/bearish)
- Trading context (support/resistance if available)
2. Analyze Sentiment
The script automatically calculates sentiment based on keywords:
Bullish Keywords: strengthens, rallies, hawkish, rate hike, growth Bearish Keywords: weakens, falls, dovish, rate cut, recession
Sentiment Score:
3. Provide Context
Always include:
Script Reference
fetch_forex_news.py
Usage:
python3 scripts/fetch_forex_news.py [--limit N]
Arguments:
: Currency pair (EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, USDCAD, NZDUSD)--limit N: Number of news articles to fetch (default: 10, max: 50)Output Fields:
pair: Currency pair codecurrent_rate: Current exchange ratechange_pct: 24h percentage changenews[]: Array of news articlestitle: Article headline
- published: Publication timestamp
- publisher: News source
- link: Article URL (optional)
sentiment: Sentiment analysispair_sentiment: Sentiment score (-10 to +10)
- recommendation: BUY/SELL/HOLDExamples
Get EUR/USD Analysis
python3 scripts/fetch_forex_news.py EURUSD --limit 5
Get GBP/USD News
python3 scripts/fetch_forex_news.py GBPUSD --limit 8
Central Bank Focus
When analyzing FOREX pairs, consider these central banks:
Best Practices
1. Always fetch news first before making analysis 2. Check sentiment score to understand market bias 3. Read headlines to identify key drivers 4. Consider fundamentals (interest rates, economic data, geopolitics) 5. Provide balanced analysis - acknowledge both bullish and bearish factors 6. Mention risk factors - volatility, upcoming events, technical levels
Reference Files
See /references directory for:
api-examples.md: Detailed usage examplesforex-pairs.md: Complete pairs reference with Yahoo Finance symbolssentiment-guide.md: Sentiment calculation methodologyLimitations
Troubleshooting
Script fails to run:
pip install yfinance>=0.2.40No news returned:
Rate data missing:
Support
For issues or questions:
π‘ Examples
Get EUR/USD Analysis
python3 scripts/fetch_forex_news.py EURUSD --limit 5
Get GBP/USD News
python3 scripts/fetch_forex_news.py GBPUSD --limit 8
π Tips & Best Practices
1. Always fetch news first before making analysis 2. Check sentiment score to understand market bias 3. Read headlines to identify key drivers 4. Consider fundamentals (interest rates, economic data, geopolitics) 5. Provide balanced analysis - acknowledge both bullish and bearish factors 6. Mention risk factors - volatility, upcoming events, technical levels