market-sentiment
БесплатноБез исполняемых скриптовНе проверенAnalyze market sentiment for stocks and crypto using Reddit, news headlines, and fear/greed indicators. Get a quick read on crowd psychology before trading.
от ianalloway250 установок в других каталогахОб этом скилле
Market Sentiment Analyzer
Read the crowd before you trade. Pulls sentiment signals from Reddit mentions, news headline tone, and the Fear & Greed Index to give you a directional bias for stocks and crypto.
Fear & Greed Index (Crypto)
curl -s "https://api.alternative.me/fng/?limit=7" | python3 -c "
import json, sys
data = json.load(sys.stdin)['data']
print('=== Crypto Fear & Greed Index ===')
for d in data:
value = int(d['value'])
label = d['value_classification']
date = d['timestamp']
bar = '█' * (value // 5) + '░' * (20 - value // 5)
print(f'{label:<18} [{bar}] {value:>3}/100')
print()
print(f'Current Reading: {data[0][\"value_classification\"]} ({data[0][\"value\"]})')
if int(data[0]['value']) < 25:
print('Signal: EXTREME FEAR — historically good accumulation zone')
elif int(data[0]['value']) > 75:
print('Signal: EXTREME GREED — consider reducing exposure')
else:
print('Signal: Neutral — wait for extremes for high-conviction entries')
"
Reddit Mention Counter (Crypto/Stocks)
Track how many times a ticker is mentioned across Reddit finance subs:
python3 -c "
import urllib.request, json, re, sys
def reddit_mentions(ticker, subreddits=['wallstreetbets', 'CryptoMoonShots', 'investing', 'stocks', 'CryptoCurrency']):
ticker = ticker.upper()
counts = {}
headers = {'User-Agent': 'SentimentBot/1.0'}
for sub in subreddits:
url = f'https://www.reddit.com/r/{sub}/search.json?q={ticker}&sort=new&limit=25&t=day'
try:
req = urllib.request.Request(url, headers=headers)
with urllib.request.urlopen(req, timeout=5) as r:
data = json.loads(r.read())
posts = data['data']['children']
count = sum(1 for p in posts if ticker in p['data'].get('title','').upper())
counts[sub] = count
except:
counts[sub] = -1 # rate limited or error
total = sum(v for v in counts.values() if v >= 0)
print(f'=== Reddit Mentions: \${ticker} (Last 24h) ===')
for sub, cnt in sorted(counts.items(), key=lambda x: -x[1]):
bar = '█' * min(cnt, 20)
if cnt >= 0:
print(f'r/{sub:<25} {bar} {cnt}')
else:
print(f'r/{sub:<25} (rate limited)')
print(f'Total mentions: {total}')
if total > 50:
print('Buzz level: 🔥 HIGH - possible pump or breakout chatter')
elif total > 15:
print('Buzz level: ⚡ MODERATE - watch for momentum')
else:
print('Buzz level: 😴 LOW - under the radar')
# Change ticker here
reddit_mentions('BTC')
"
Headline Sentiment Scorer
Score the sentiment of recent news headlines for any ticker using basic NLP:
python3 -c "
import urllib.request, json, re
BULLISH = ['surge', 'rally', 'soar', 'breakout', 'gain', 'beat', 'outperform', 'upgrade',
'buy', 'bullish', 'record', 'growth', 'profit', 'upside', 'strong', 'win', 'rise']
BEARISH = ['crash', 'plunge', 'drop', 'fall', 'loss', 'miss', 'downgrade', 'sell',
'bearish', 'risk', 'warn', 'weak', 'concern', 'debt', 'decline', 'probe', 'lawsuit']
def score_headline(text):
text = text.lower()
bull = sum(1 for w in BULLISH if w in text)
bear = sum(1 for w in BEARISH if w in text)
if bull > bear: return '🟢 BULLISH', bull - bear
elif bear > bull: return '🔴 BEARISH', bear - bull
else: return '⚪ NEUTRAL', 0
# Sample headlines — replace with live feed or paste your own
headlines = [
'Bitcoin surges past 70k as institutional demand grows',
'Fed signals rate cuts may come sooner than expected',
'Apple beats earnings estimates, stock rises 3%',
'Crypto exchange hacked, user funds at risk',
'Tesla misses delivery targets for second quarter',
'Gold hits record high amid inflation concerns',
'NVIDIA upgrade: analysts raise price target to 1200',
'Bank earnings decline as loan losses mount',
]
print('=== Headline Sentiment Analysis ===')
scores = []
for h in headlines:
label, strength = score_headline(h)
print(f'{label} (strength: {strength}) {h[:60]}')
scores.append(1 if '🟢' in label else -1 if '🔴' in label else 0)
avg = sum(scores) / len(scores)
print()
print(f'Overall Bias: {avg:+.2f}')
if avg > 0.3: print('Market Tone: Broadly bullish — momentum favors longs')
elif avg < -0.3: print('Market Tone: Broadly bearish — risk-off sentiment')
else: print('Market Tone: Mixed — wait for clarity')
"
Volatility Spike Detector (Options-Implied)
Estimate market fear from VIX-equivalent moves:
python3 -c "
# Rough VIX interpretation for position sizing context
vix_levels = [
(0, 15, 'Low Fear', '✅', 'Trend-following works well. Momentum strategies outperform.'),
(15, 20, 'Mild Unease', '🟡', 'Normal market noise. Stick to your plan.'),
(20, 30, 'Elevated Fear','⚠️', 'Widen stops. Reduce position size 20-30%.'),
(30, 40, 'High Fear', '🔴', 'Heightened risk. Defensive posture. Mean
Установить market-sentiment в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл market-sentiment?
Analyze market sentiment for stocks and crypto using Reddit, news headlines, and fear/greed indicators. Get a quick read on crowd psychology before trading.
Как установить скилл market-sentiment?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл market-sentiment запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic