ภาพรวม

Telegram Bot ที่ใช้ AI วิเคราะห์หุ้นและ crypto ผ่าน OpenRouter (Claude) สามารถสนทนาได้โดยตรงใน Telegram พร้อมดึงข้อมูลจากหลาย data source และส่งกราฟเป็นรูปภาพได้

GitHub: https://github.com/chawanjoey/stock-radar-bot (private)

Local path: ~/telegram-claude-bot/


Architecture

Telegram ↔ bot.py (Python async, long-polling)
               ↓
         OpenRouter (claude-3-5-haiku)
               ↓  function calling (agentic loop สูงสุด 8 รอบ)
    ┌──────────┼──────────┬──────────┬──────────┐
    ▼          ▼          ▼          ▼          ▼
TradingView  FMP REST  CoinGecko  yfinance   mplfinance
   MCP        API       REST API  + ta lib   (Chart PNG)
 (stdio)   (direct)   (direct)  (SET Thai)  (sendPhoto)

Tools ทั้งหมด

📊 TradingView MCP (27 tools)

📈 FMP — Financial Modeling Prep (7 tools)