crypto-monitor-tool
v1.0.4
Published
Real-time cryptocurrency price monitoring with Polymarket arbitrage opportunity detection
Maintainers
Readme
crypto-price-monitor
Real-time cryptocurrency price monitoring with Polymarket arbitrage opportunity detection.
Installation
npm install crypto-price-monitor
# or
yarn add crypto-price-monitorQuick Start
As a CLI tool:
# Install globally
npm install -g crypto-price-monitor
# Start monitoring
crypto-monitor start
# Check for opportunities
crypto-monitor check
# Run health check
crypto-monitor healthAs a library:
const { startMonitoring } = require('crypto-price-monitor');
// Start monitoring
startMonitoring({
symbols: ['BTC', 'ETH', 'SOL'],
interval: 30000,
feishuWebhook: process.env.FEISHU_WEBHOOK_URL
});Configuration
Create a .env file:
FEISHU_WEBHOOK_URL=your_feishu_webhook_url
MONITOR_SYMBOLS=BTC,ETH,SOL
MONITOR_INTERVAL=30000
POLYMARKET_ENABLED=trueFeatures
- 📈 Real-time price monitoring from multiple exchanges
- 🎯 Polymarket arbitrage opportunity detection
- 🤖 24/7 autonomous operation
- 📱 Feishu notification integration
- 🔄 Multi-exchange support (Binance, Coinbase)
- 💾 Redis caching (optional)
- 📊 Daily opportunity reports
API Reference
startMonitoring(config)
Starts the monitoring service.
Parameters:
config(Object): Configuration objectsymbols(Array): Array of symbols to monitor (default:['BTC', 'ETH', 'SOL'])interval(Number): Check interval in milliseconds (default:30000)feishuWebhook(String): Feishu webhook URL (optional)
checkPrices(symbols, feishuWebhook)
Checks prices for given symbols.
getPrice(symbol)
Gets current price for a symbol.
sendFeishuNotification(webhook, message)
Sends notification to Feishu.
Examples
See examples/ directory for more examples.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
License
MIT © choiceone2025
