How amitraj02/btc-alert works
This repository contains two BTC-focused products: a browser-based live Bitcoin pattern-alert terminal and Python command-line tools for swing alerts and simulated paper trading. In the web app, the dashboard loads market candles and ticker data, tracks streaming candles, analyzes patterns, and dispatches alerts; charting and settings complete the user-facing workflow. The Python tools separately fetch market data, detect swing signals, and send notifications or simulate trades. The README is empty, so major capabilities are inferred from the tree and excerpts; unsampled UI and Python internals limit some connections.
Main entry points: page.tsx Live dashboard · binance.ts Market data service · swing_low_signal_finder.py Swing alert monitor · patternEngine.ts Pattern detection
Components 22
Live Alert Terminal
- Live dashboard
live_alert_BTC_App/src/app/page.tsx - Trading chart
live_alert_BTC_App/src/components/TradingChart.tsx - Pattern feed
live_alert_BTC_App/src/components/PatternFeed.tsx - Alert settings
live_alert_BTC_App/src/components/AlertSettingsModal.tsx - Dashboard header
live_alert_BTC_App/src/components/Header.tsx
Market Analysis
- Market types
live_alert_BTC_App/src/lib/types/crypto.ts - Market data service
live_alert_BTC_App/src/lib/services/binance.ts - Pattern detection
live_alert_BTC_App/src/lib/engine/patternEngine.ts - Technical indicators
live_alert_BTC_App/src/lib/engine/indicators.ts
Python Trading Tools
- Swing alert monitor
btc_py/swing_low_signal_finder.py - Python market fetchers
btc_py/fetch_HOLC_data_BTC.py - Python price fetcher
btc_py/fetch_bitcoin_ltp.py - Paper trading bot
btc_py/BTC_papaertrading.py - Paper portfolio
btc_py/paper_portfolio.json - OHLC data file
btc_py/btc_ohlc_data.csv
Alert Delivery
- Email alert route
live_alert_BTC_App/src/app/api/alerts/email/route.ts - Telegram alert route
live_alert_BTC_App/src/app/api/alerts/telegram/route.ts
Other components
- Trader
- Binance market APIs
- CoinGecko fallback
- Email delivery
- Telegram delivery
Connections 24
- Trader → Live dashboard: uses
live_alert_BTC_App/src/app/page.tsx - Live dashboard → Market data service: loads and streams
live_alert_BTC_App/src/app/page.tsx - Market data service → Binance market APIs: fetches candles
live_alert_BTC_App/src/lib/services/binance.ts - Market data service → CoinGecko fallback: falls back
live_alert_BTC_App/src/lib/services/binance.ts - Live dashboard → Pattern detection: analyzes candles
live_alert_BTC_App/src/app/page.tsx - Pattern detection → Technical indicators: calculates channel
live_alert_BTC_App/src/lib/engine/patternEngine.ts - Pattern detection → Market types: uses signal types
live_alert_BTC_App/src/lib/engine/patternEngine.ts - Technical indicators → Market types: uses candle types
live_alert_BTC_App/src/lib/engine/indicators.ts - Market data service → Market types: uses market types
live_alert_BTC_App/src/lib/services/binance.ts - Live dashboard → Trading chart: renders chart
live_alert_BTC_App/src/app/page.tsx - Live dashboard → Pattern feed: renders signals
- Live dashboard → Alert settings: opens settings
- Live dashboard → Dashboard header: renders header
- Live dashboard → Email alert route: dispatches alerts
- Live dashboard → Telegram alert route: dispatches alerts
- Email alert route → Email delivery: sends email
live_alert_BTC_App/src/app/api/alerts/email/route.ts - Telegram alert route → Telegram delivery: sends message
live_alert_BTC_App/src/app/api/alerts/telegram/route.ts - Swing alert monitor → Binance market APIs: fetches market data
btc_py/swing_low_signal_finder.py - Swing alert monitor → Email alert route: posts alert
btc_py/swing_low_signal_finder.py - Swing alert monitor → Telegram delivery: sends alert
btc_py/swing_low_signal_finder.py - Paper trading bot → Paper portfolio: reads and writes
btc_py/BTC_papaertrading.py - Paper trading bot → Swing alert monitor: uses swing signals
btc_py/BTC_papaertrading.py - Python market fetchers → OHLC data file: stores data
- Python price fetcher → Binance market APIs: fetches price