Crypto Alert Aggregator
Combines market data feeds with Twitter/social signals to detect trading opportunities and market sentiment shifts.
Features
- Real-time price and volume monitoring
- Twitter sentiment tracking
- Alert filtering and prioritization
- Multi-asset support
Usage
const aggregator = require('./crypto-alert-aggregator');
// Fetch alerts for specific assets
const alerts = await aggregator.getAlerts({
assets: ['BTC', 'ETH'],
minVolumeDelta: 0.2,
twitterSentimentThreshold: 0.7
});
// Stream live alerts
aggregator.streamAlerts((alert) => {
console.log(`[${alert.type}] ${alert.asset}: ${alert.message}`);
});
Configuration
Set environment variables:
CRYPTO_API_KEY: Market data API keyTWITTER_API_KEY: Twitter API credentialsALERT_WEBHOOK: Optional webhook for external notifications
Output Format
{
"timestamp": "2026-04-13T02:14:08Z",
"asset": "BTC",
"type": "volume_spike|price_move|sentiment_shift",
"value": 45000,
"change": 2.5,
"twitterMentions": 1250,
"sentiment": 0.82,
"confidence": 0.85
}
Scan to join WeChat group