Skip to content

willvx3m/vx-insight

Repository files navigation

VX-Insight: Cryptocurrency Monitoring System

A comprehensive cryptocurrency monitoring system that tracks whale transactions and analyzes crypto news using AI-powered insights.

πŸš€ Features

  • Whale Transaction Monitoring: Real-time tracking of Solana whale transactions from Telegram channels
  • News Analysis: Automated scraping and AI-powered analysis of crypto news from multiple sources
  • Telegram Integration: Automated notifications via Telegram bot
  • Database Storage: SQLite database for storing whale transactions and news articles
  • AI Processing: Poe API integration for intelligent content analysis

πŸ“‹ Requirements

  • Node.js (>=20)
  • Python3 (<=3.12)
  • Telegram Bot Token (for notifications)
  • Poe API Credentials (for AI analysis)

πŸ› οΈ Installation

  1. Clone the repository

    git clone <repository-url>
    cd vx-insight
  2. Install Node.js dependencies

    npm install
  3. Install Python dependencies

    python3 -m pip install poe-api-wrapper python-dotenv
  4. Set up environment variables

    cp .env.example .env
    # Edit .env with your actual credentials

βš™οΈ Configuration

Environment Variables

Create a .env file in the root directory with the following variables:

# Telegram Bot Configuration
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
TELEGRAM_CHAT_ID=your_telegram_chat_id_here

# Poe API Configuration
POE_P_B=your_poe_p_b_token_here
POE_P_LAT=your_poe_p_lat_token_here
POE_P_CHAT_CODE=your_poe_chat_code_here
POE_P_BOT=GPT-4o

# Database Configuration
DATABASE_PATH=./store.db

Poe API Setup

  1. Create a .env file in the poe-query/ directory:

    P_B=your_poe_p_b_token_here
    P_LAT=your_poe_p_lat_token_here
    P_CHAT_CODE=your_poe_chat_code_here
    P_BOT=GPT-4o
  2. Get Poe API credentials from Poe API Wrapper

πŸš€ Usage

Manual Execution

  1. Run News Monitor

    node news-monitor.js
  2. Run Whale Monitor

    node whale-monitor.js

Automated Execution

Use the provided scripts for automated monitoring:

  1. News Monitoring

    ./scripts/run-news-monitor.sh
  2. Whale Monitoring

    ./scripts/run-whale-monitor.sh

πŸ“Š Data Sources

News Sources

Whale Transaction Sources

πŸ—„οΈ Database Schema

News Table

  • id: Primary key
  • title: Article title
  • url: Article URL (unique)
  • content: Article content
  • datetime: Publication timestamp
  • author: Article author
  • editor: Article editor
  • report: AI-generated analysis report

Whale Feed Table

  • id: Primary key
  • contract: Token contract address
  • action: Buy/Sell action
  • name: Token name
  • symbol: Token symbol
  • url: Transaction URL (unique)
  • usd: USD value
  • price: Token price
  • volume: Trading volume
  • liquidity: Liquidity amount
  • marketcap: Market capitalization
  • datetime: Transaction timestamp

πŸ”§ Cron Job Setup

Direct Script Execution

# Run every 10 minutes
*/10 * * * * open -a Terminal "/path/to/vx-insight/scripts/run-news-monitor.sh"
*/10 * * * * open -a Terminal "/path/to/vx-insight/scripts/run-whale-monitor.sh"

Using Osascript

*/10 * * * * /path/to/vx-insight/scripts/run-news-monitor.sh
*/10 * * * * /path/to/vx-insight/scripts/run-whale-monitor.sh

πŸ“ Project Structure

vx-insight/
β”œβ”€β”€ news-monitor.js          # News monitoring script
β”œβ”€β”€ whale-monitor.js         # Whale transaction monitoring script
β”œβ”€β”€ telegram.js              # Telegram bot integration
β”œβ”€β”€ db.js                    # Database operations
β”œβ”€β”€ scrap.js                 # News scraping utilities
β”œβ”€β”€ scrap-tg.js              # Telegram channel scraping
β”œβ”€β”€ poe.js                   # Poe API integration
β”œβ”€β”€ util.js                  # Utility functions
β”œβ”€β”€ poe-query/               # Python Poe API module
β”‚   β”œβ”€β”€ config.py            # Poe API configuration
β”‚   β”œβ”€β”€ poe.py               # Poe API client
β”‚   └── requirements.txt     # Python dependencies
β”œβ”€β”€ scripts/                 # Execution scripts
β”‚   β”œβ”€β”€ run-news-monitor.sh  # News monitoring script
β”‚   └── run-whale-monitor.sh # Whale monitoring script
β”œβ”€β”€ logs/                    # Log files directory
└── store.db                 # SQLite database

πŸ”’ Security

  • All sensitive credentials are stored in environment variables
  • .env files are excluded from version control
  • No hardcoded API keys or tokens in the codebase

πŸ› Troubleshooting

  1. Missing environment variables: Ensure all required variables are set in .env
  2. Database connection issues: Check if store.db exists and is writable
  3. Poe API errors: Verify your Poe API credentials are correct
  4. Telegram bot issues: Confirm your bot token and chat ID are valid

πŸ“ Logs

  • News monitoring logs: logs/Report-YYYY-MM-DD-HH-MM-SS.log
  • Whale monitoring logs: logs/Report-WM-YYYY-MM-DD-HH-MM-SS.log
  • General debug logs: logs/debug.log

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License.

About

Crypto whale tracker with AI news analysis and Telegram alerts

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors