Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Cryptocurrency Price Prediction System v3.0

🎯 Research Purpose

AI-powered cryptocurrency prediction system for research and educational purposes. Combines GPT-4, technical analysis, and news sentiment to predict 1-hour price movements.

Research Goals:

  • Evaluate AI prediction accuracy in crypto markets
  • Analyze correlation between technical indicators and price movements
  • Measure news sentiment impact on volatility
  • Create benchmarks for future research

📊 Features

  • 🤖 AI Analysis: OpenAI GPT-4 integration
  • 📈 Technical Analysis: RSI, MACD, SMA, EMA indicators
  • 📰 News Integration: Real-time news analysis
  • ⏰ Automated Trading: Hourly analysis cycles
  • 📊 Visualization: Dual-panel prediction charts
  • 📄 Reports: HTML dashboards with performance metrics

📸 Example Output

BTC Prediction Chart

BTC/USDT prediction chart with price projection and RSI analysis

🛠 Installation

Prerequisites

  • Python 3.8+
  • OpenAI API key
  • NewsAPI key

Setup

git clone <repository-url>
cd CrpytoPredictor
pip install -r requirements.txt

Create .env file:

OPENAI_API_KEY=your_openai_api_key_here
GPT_MODEL=gpt-4-turbo
NEWSAPI_KEY=your_news_api_key_here

Create coins.csv:

symbol,name
btc,Bitcoin
eth,Ethereum

Example Session

🚀 CRYPTO PRICE PREDICTOR v3.0
============================================================
1. 📊 Single Coin Analysis
2. 🎯 Check Overall Success Rate
3. ⏰ Start Hourly Auto Analysis
4. 📈 Check Current Price
5. 📋 View Prediction Logs
6. 🔍 Check Pending Predictions
7. 📊 Successful/Failed Prediction Details
8. 📄 Create Modern HTML Report
9. 🚪 Exit

Make your selection (1-9): 1
Enter coin symbol (e.g: btc, eth): BTC

🔍 bitcoin (BTC) analysis starting...
💰 Current Price: 113386.0 USDT
📈 Prediction: RISE
🎯 Price Range: 113450.0-114200.0
📝 Analysis: Mixed technical signals and neutral news sentiment suggest little change in BTC price in the next hour.
📊 Confidence: 70%
✅ BTC analysis completed and saved

📁 File Structure

MonaCrpytoPredictor/
├── tester.py               # Main system
├── .env                    # API credentials
├── coins.csv              # Target cryptocurrencies
├── template.html          # Report template
├── requirements.txt       # Dependencies
├── data/
│   ├── simple_predictions.csv
│   └── results.csv
└── reports/
    ├── *.html             # HTML reports
    └── *.png              # Chart images

📊 Data Formats

Predictions:

timestamp,symbol,current_price,prediction,price_range,status
2025-08-05 15:02:32,WIF,0.912,RISE,0.913-0.925,COMPLETED

Results:

timestamp,symbol,initial_price,final_price,prediction,success,success_rate,reason
2025-08-05 14:02:26,SOL,170.88,171.01,RISE,True,0.8,Rise successful: 0.08% profit

🔧 API Setup

OpenAI API

  1. Visit OpenAI Platform
  2. Get API key
  3. Add to .env as OPENAI_API_KEY

NewsAPI

  1. Register at NewsAPI
  2. Get free API key
  3. Add to .env as NEWSAPI_KEY

⚠️ Disclaimer

For research and educational purposes only. Not financial advice. Cryptocurrency trading carries high risk.

About

AI-based crypto predictor to investigate the success rates of AI models

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages