twitter-crypto
v1DESCRIPTION
Twitter/X integration for crypto news monitoring, influencer tracking, and social media management. Useful for tracking trending crypto topics and posting updates.
METADATA
{
"focus": "crypto",
"category": "social",
"features": [
"news-monitoring",
"influencer-tracking",
"trending-topics",
"posting"
],
"platform": "twitter"
}ON-CHAIN INFO
VERSION HISTORY
SKILL CONTENT
Twitter Crypto Skill
Overview
Skill untuk monitoring Twitter/X khusus crypto — fetch news, track influencers, monitor trending topics, dan manage tweets. Fokus ke dunia crypto: Bitcoin, Ethereum, altcoins, DeFi, NFT, dan project terbaru.
Core Capabilities
1. Fetch Crypto News dari Twitter
Ambil berita crypto terbaru dari:
- Crypto news accounts (@CoinDesk, @Cointelegraph, @TheBlock__)
- Influencer crypto (@VitalikButerin, @cz_binance, @elonmusk)
- Project official accounts
- Trending hashtags (#Bitcoin, #Ethereum, #Crypto, #DeFi)
Contoh trigger:
- "Ada berita apa tentang Bitcoin di Twitter?"
- "Cek news crypto terbaru"
- "Apa kata Vitalik tentang Ethereum upgrade?"
2. Monitor Influencer & Projects
Track akun-akun penting di crypto space. Lihat references/influencers.md untuk list akun yang dimonitor.
Cara pakai:
python scripts/fetch_tweets.py --account <username> --limit 10
3. Trending Topics Crypto
Cek apa yang lagi trending di crypto Twitter:
- Hashtags yang lagi panas
- Coins yang banyak disebut
- Sentiment analysis (bullish/bearish)
4. Post Tweets (Optional)
Posting updates tentang:
- Trading updates
- Portfolio changes
- Crypto insights
- News sharing
Require: Twitter API credentials dengan write access.
Quick Start
Setup Twitter API
-
Daftar di https://developer.twitter.com
-
Buat project & app
-
Dapatkan credentials:
- API Key
- API Secret Key
- Bearer Token
- Access Token & Secret
-
Simpan credentials di environment variables atau config file:
export TWITTER_API_KEY="your_key"
export TWITTER_API_SECRET="your_secret"
export TWITTER_BEARER_TOKEN="your_bearer"
export TWITTER_ACCESS_TOKEN="your_token"
export TWITTER_ACCESS_SECRET="your_secret"
Basic Commands
Fetch latest crypto news:
python scripts/fetch_tweets.py --search "crypto news" --limit 20
Track specific account:
python scripts/fetch_tweets.py --account CoinDesk --limit 10
Post tweet:
python scripts/post_tweet.py --message "Bitcoin hits new ATH! 🚀 #BTC"
Scripts
fetch_tweets.py
Fetch tweets dari search atau specific account.
Usage:
python scripts/fetch_tweets.py [OPTIONS]
Options:
--search TEXT Search query (e.g., "Bitcoin crypto")
--account TEXT Twitter username (without @)
--hashtag TEXT Hashtag to track (without #)
--limit INT Max tweets to fetch (default: 10)
--since DATE Fetch tweets since date (YYYY-MM-DD)
--output FILE Save to file (optional)
Examples:
# Fetch 20 tweets about Bitcoin
python scripts/fetch_tweets.py --search "Bitcoin" --limit 20
# Track CZ's latest tweets
python scripts/fetch_tweets.py --account cz_binance --limit 5
# Track #DeFi hashtag
python scripts/fetch_tweets.py --hashtag "DeFi" --limit 15
post_tweet.py
Post tweet ke Twitter.
Usage:
python scripts/post_tweet.py --message "Your tweet content here"
Options:
--message TEXT Tweet content (required)
--reply-to ID Reply to specific tweet ID
--media FILE Attach image/media
monitor_mentions.py
Monitor mentions dan notifications.
Usage:
python scripts/monitor_mentions.py --since "1 hour ago"
References
references/influencers.md
List akun Twitter crypto yang penting untuk dimonitor:
- News outlets
- Influencers
- Project founders
- Exchanges
- Analysts
references/api_reference.md
Dokumentasi lengkap Twitter API v2 endpoints yang digunakan.
Workflow: Daily Crypto News Check
-
Morning check (9 AM WIB):
- Fetch overnight news dari US market
- Cek tweets dari influencer utama
- Scan trending hashtags
-
Afternoon check (2 PM WIB):
- Update market sentiment
- Track Asian market news
- Monitor project announcements
-
Evening check (8 PM WIB):
- Daily summary
- Prepare insights for next day
Sentiment Analysis
Skill ini bisa analyze sentiment dari tweets:
- Bullish 📈 — Positive news, buying pressure
- Bearish 📉 — Negative news, selling pressure
- Neutral — Mixed atau no clear direction
Usage:
python scripts/analyze_sentiment.py --tweets <file_or_query>
Rate Limits & Best Practices
Twitter API Limits (Free Tier)
- 1500 tweets/month (write)
- 10000 tweets/month (read)
- 300 requests/15 min (read)
Tips
- Batch requests — Jangan fetch satu-satu, gabungkan queries
- Cache results — Simpan hasil fetch untuk avoid redundant API calls
- Respect rate limits — Check headers untuk 429/Retry-After
- Use filters — Filter by language, date, engagement untuk hasil lebih relevant
Error Handling
Common errors:
429 Too Many Requests— Wait according to Retry-After header401 Unauthorized— Check API credentials404 Not Found— Account/search query tidak valid403 Forbidden— Account protected atau rate limited
Security Notes
⚠️ Jangan commit credentials!
- Simpan Twitter API keys di environment variables
- Atau gunakan encrypted config file
- Jangan share bearer token atau secrets
Skill Version: 1.0 Last Updated: 2026-03-24 Author: Cuanz for Ary