JinyueXie/hypermind-ai

Python

1

38 commits

updated Jun 25, 2025

See the code

README

๐Ÿง  HyperMind AI - Revolutionary Web3 Trading Intelligence

HyperMind AI Logo HyperHack 2025 Alith Integration API Status

Revolutionary DeFi trading intelligence powered by Hyperion's Alith AI

๐Ÿš€ Live Demo | ๐Ÿ“Š Dashboard | ๐Ÿง  AI Signals | ๐Ÿ”— API Docs


๐Ÿ† HyperHack 2025 - Alith Integration Track

HyperMind AI showcases the full potential of Hyperion's Alith co-agent in revolutionizing DeFi trading through:

  • ๐Ÿง  Neural Pattern Recognition โ€“ Real-time technical analysis with RSI, MACD, and pattern detection
  • โšก AI-Powered Signal Generation โ€“ Advanced trading signals with confidence scoring
  • ๐Ÿ”ฎ Predictive Analytics โ€“ Machine learning-driven market trend forecasting
  • ๐Ÿ›ก๏ธ Risk Management โ€“ Automated stop-loss and take-profit optimization
  • โ›“๏ธ Blockchain Integration โ€“ Verifiable signal submission and execution tracking

โœจ Key Features

๐ŸŽฏ AI-Powered Trading Engine

  • Hyperion Alith SDK Integration - Real AI-powered market analysis
  • Live Signal Generation - BUY/SELL/HOLD signals with confidence scores
  • Technical Analysis - RSI, pattern detection, trend analysis, volatility metrics
  • Multi-pair Support - ETH/USDC, BTC/USDT, MATIC/USDC, and more
  • Batch Processing - Analyze multiple trading pairs simultaneously

๐Ÿ“ˆ Production-Ready API

  • FastAPI Backend - RESTful endpoints for signal generation
  • Real-time Processing - Sub-second signal generation
  • Scalable Architecture - Async processing with proper error handling
  • API Documentation - Interactive docs at /docs endpoint
  • CORS Enabled - Ready for frontend integration

๐Ÿ” Web3 Integration

  • Smart Contract Integration - Signal submission to blockchain
  • MetaMask Support - Wallet connection and network switching
  • Hyperion Testnet - Deployed on Chain ID 2001
  • Transaction Verification - Verifiable signal execution

๐Ÿ–ฅ๏ธ Modern Frontend

  • Glassmorphism UI - Modern design with smooth animations
  • Responsive Design - Works on desktop and mobile
  • Real-time Updates - Live signal feeds and portfolio tracking
  • Interactive Charts - Technical analysis visualization

๐Ÿš€ Quick Start

๐ŸŒ Live Version

Frontend: https://hypermind-ai.vercel.app/

API Endpoint: http://localhost:8000 (when running locally)

๐Ÿงช Local Development

# Clone the repository
git clone https://github.com/JinyueXie/hypermind-ai.git
cd hypermind-ai

# Backend Setup (AI Trading Engine)
cd backend/agent
python3 -m venv fresh_venv
source fresh_venv/bin/activate  # On Windows: fresh_venv\Scripts\activate
pip install -r requirements.txt

# Start the AI API Server
python api_server.py

# Frontend Setup (in another terminal)
cd hypermind-ai
python3 -m http.server 8000
# Open http://localhost:8000 in your browser

๐Ÿง  Test AI Signal Generation

# Single signal generation
curl -X POST http://localhost:8000/signal \
  -H "Content-Type: application/json" \
  -d '{"pair": "ETH/USDC"}' | jq

# Batch analysis
curl -X POST http://localhost:8000/batch \
  -H "Content-Type: application/json" \
  -d '{"pairs": ["ETH/USDC", "BTC/USDT"]}' | jq

# Competition mode (exports signals to JSON)
python run_agent.py compete

๐Ÿ› ๏ธ Project Architecture

hypermind-ai/
โ”œโ”€โ”€ index.html                  # Landing page
โ”œโ”€โ”€ pages/
โ”‚   โ”œโ”€โ”€ dashboard.html          # Main trading dashboard
โ”‚   โ”œโ”€โ”€ signals.html            # AI signal monitoring
โ”‚   โ”œโ”€โ”€ portfolio.html          # Portfolio management
โ”‚   โ””โ”€โ”€ settings.html           # Configuration
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ css/styles.css          # Styling and animations
โ”‚   โ””โ”€โ”€ js/
โ”‚       โ”œโ”€โ”€ api.js              # Frontend API integration
โ”‚       โ””โ”€โ”€ dashboard.js        # Dashboard functionality
โ”œโ”€โ”€ components/
โ”‚   โ””โ”€โ”€ web3-config.js          # Smart contract configuration
โ”œโ”€โ”€ backend/
โ”‚   โ””โ”€โ”€ agent/
โ”‚       โ”œโ”€โ”€ hypermind_ai.py     # Core AI trading engine
โ”‚       โ”œโ”€โ”€ api_server.py       # FastAPI server
โ”‚       โ”œโ”€โ”€ run_agent.py        # CLI interface
โ”‚       โ””โ”€โ”€ config/
โ”‚           โ””โ”€โ”€ alith_config.json # Alith SDK configuration
โ”œโ”€โ”€ contracts/
โ”‚   โ”œโ”€โ”€ HyperMindSignals.sol    # Signal storage smart contract
โ”‚   โ””โ”€โ”€ AlithSignalMarket.sol   # Advanced signal marketplace
โ”œโ”€โ”€ deployment_info.md          # Deployment details
โ””โ”€โ”€ README.md

๐Ÿง  AI Technology Stack

Core AI Engine

  • Alith SDK Integration - Hyperion's AI co-agent for verified analysis
  • Technical Indicators - RSI, MACD, Bollinger Bands, pattern recognition
  • Machine Learning - LSTM networks for price prediction
  • Risk Management - Automated position sizing and risk assessment

Signal Generation Process

  1. Market Data Collection - Real-time price feeds and volume analysis
  2. Technical Analysis - Multi-indicator consensus scoring
  3. AI Analysis - Natural language market insights
  4. Signal Creation - BUY/SELL/HOLD with confidence levels
  5. Blockchain Submission - Verifiable signal storage
  6. Performance Tracking - Win rate and profitability metrics

Signal Types

  • STRONG BUY - High confidence bullish signals (80%+ confidence)
  • BUY - Moderate bullish signals (60-80% confidence)
  • HOLD - Neutral/consolidation signals (40-60% confidence)
  • SELL - Bearish signals with risk management
  • MONITOR - Watch list signals for potential entry

๐Ÿ“Š API Endpoints

EndpointMethodDescription
/GETAPI status and endpoints
/healthGETService health check
/signalPOSTGenerate single trading signal
/batchPOSTAnalyze multiple pairs
/pairsGETSupported trading pairs
/docsGETInteractive API documentation

Example Response

{
  "success": true,
  "pair": "ETH/USDC",
  "signal": {
    "pair": "ETH/USDC",
    "signal": "BUY",
    "confidence": 0.8,
    "analysis_summary": "Technical indicators show bullish momentum...",
    "technical_indicators": {
      "rsi": 65.2,
      "trend": "BULLISH",
      "patterns": ["BULLISH_TREND"],
      "support_level": 2100.50,
      "resistance_level": 2250.75
    }
  }
}

๐Ÿ”’ Smart Contract Integration

Deployed Contracts

  • Signal Registry: 0x4bF9Ff46CD70D7A28169bC028A822Df95bF4A049
  • Chain ID: 2001 (Hyperion Testnet)
  • Network: Metis Hyperion Testnet

Contract Functions

function submitSignal(
    string memory pair,
    uint8 signal,
    uint256 confidence,
    bytes32 proofHash
) external;

function executeSignal(uint256 signalId) external;
function getSignalHistory(address user) external view returns (Signal[] memory);

๐Ÿงช Performance Metrics

AI Model Performance

  • Signal Accuracy: 73-85% (backtested on historical data)
  • Response Time: <500ms per signal
  • Supported Pairs: 9 major crypto pairs
  • Update Frequency: Real-time on demand

Technical Specifications

  • Backend: Python 3.12 + FastAPI + Alith SDK
  • Frontend: Vanilla JS + Tailwind CSS
  • Blockchain: Solidity + Web3.py
  • AI/ML: scikit-learn + numpy + pandas


๐Ÿง‘โ€๐Ÿ’ป Development Team

Built by @JinyueXie for HyperHack 2025.

Powered by Hyperion Alith AI โ€ข Built with โค๏ธ for HyperHack 2025


๐Ÿ“œ License

MIT License - see LICENSE file for details.

Contributors

JinyueXie

38 commits

JinyueXie/hypermind-ai

Python

1

38 commits

updated Jun 25, 2025

See the code

README

๐Ÿง  HyperMind AI - Revolutionary Web3 Trading Intelligence

HyperMind AI Logo HyperHack 2025 Alith Integration API Status

Revolutionary DeFi trading intelligence powered by Hyperion's Alith AI

๐Ÿš€ Live Demo | ๐Ÿ“Š Dashboard | ๐Ÿง  AI Signals | ๐Ÿ”— API Docs


๐Ÿ† HyperHack 2025 - Alith Integration Track

HyperMind AI showcases the full potential of Hyperion's Alith co-agent in revolutionizing DeFi trading through:

  • ๐Ÿง  Neural Pattern Recognition โ€“ Real-time technical analysis with RSI, MACD, and pattern detection
  • โšก AI-Powered Signal Generation โ€“ Advanced trading signals with confidence scoring
  • ๐Ÿ”ฎ Predictive Analytics โ€“ Machine learning-driven market trend forecasting
  • ๐Ÿ›ก๏ธ Risk Management โ€“ Automated stop-loss and take-profit optimization
  • โ›“๏ธ Blockchain Integration โ€“ Verifiable signal submission and execution tracking

โœจ Key Features

๐ŸŽฏ AI-Powered Trading Engine

  • Hyperion Alith SDK Integration - Real AI-powered market analysis
  • Live Signal Generation - BUY/SELL/HOLD signals with confidence scores
  • Technical Analysis - RSI, pattern detection, trend analysis, volatility metrics
  • Multi-pair Support - ETH/USDC, BTC/USDT, MATIC/USDC, and more
  • Batch Processing - Analyze multiple trading pairs simultaneously

๐Ÿ“ˆ Production-Ready API

  • FastAPI Backend - RESTful endpoints for signal generation
  • Real-time Processing - Sub-second signal generation
  • Scalable Architecture - Async processing with proper error handling
  • API Documentation - Interactive docs at /docs endpoint
  • CORS Enabled - Ready for frontend integration

๐Ÿ” Web3 Integration

  • Smart Contract Integration - Signal submission to blockchain
  • MetaMask Support - Wallet connection and network switching
  • Hyperion Testnet - Deployed on Chain ID 2001
  • Transaction Verification - Verifiable signal execution

๐Ÿ–ฅ๏ธ Modern Frontend

  • Glassmorphism UI - Modern design with smooth animations
  • Responsive Design - Works on desktop and mobile
  • Real-time Updates - Live signal feeds and portfolio tracking
  • Interactive Charts - Technical analysis visualization

๐Ÿš€ Quick Start

๐ŸŒ Live Version

Frontend: https://hypermind-ai.vercel.app/

API Endpoint: http://localhost:8000 (when running locally)

๐Ÿงช Local Development

# Clone the repository
git clone https://github.com/JinyueXie/hypermind-ai.git
cd hypermind-ai

# Backend Setup (AI Trading Engine)
cd backend/agent
python3 -m venv fresh_venv
source fresh_venv/bin/activate  # On Windows: fresh_venv\Scripts\activate
pip install -r requirements.txt

# Start the AI API Server
python api_server.py

# Frontend Setup (in another terminal)
cd hypermind-ai
python3 -m http.server 8000
# Open http://localhost:8000 in your browser

๐Ÿง  Test AI Signal Generation

# Single signal generation
curl -X POST http://localhost:8000/signal \
  -H "Content-Type: application/json" \
  -d '{"pair": "ETH/USDC"}' | jq

# Batch analysis
curl -X POST http://localhost:8000/batch \
  -H "Content-Type: application/json" \
  -d '{"pairs": ["ETH/USDC", "BTC/USDT"]}' | jq

# Competition mode (exports signals to JSON)
python run_agent.py compete

๐Ÿ› ๏ธ Project Architecture

hypermind-ai/
โ”œโ”€โ”€ index.html                  # Landing page
โ”œโ”€โ”€ pages/
โ”‚   โ”œโ”€โ”€ dashboard.html          # Main trading dashboard
โ”‚   โ”œโ”€โ”€ signals.html            # AI signal monitoring
โ”‚   โ”œโ”€โ”€ portfolio.html          # Portfolio management
โ”‚   โ””โ”€โ”€ settings.html           # Configuration
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ css/styles.css          # Styling and animations
โ”‚   โ””โ”€โ”€ js/
โ”‚       โ”œโ”€โ”€ api.js              # Frontend API integration
โ”‚       โ””โ”€โ”€ dashboard.js        # Dashboard functionality
โ”œโ”€โ”€ components/
โ”‚   โ””โ”€โ”€ web3-config.js          # Smart contract configuration
โ”œโ”€โ”€ backend/
โ”‚   โ””โ”€โ”€ agent/
โ”‚       โ”œโ”€โ”€ hypermind_ai.py     # Core AI trading engine
โ”‚       โ”œโ”€โ”€ api_server.py       # FastAPI server
โ”‚       โ”œโ”€โ”€ run_agent.py        # CLI interface
โ”‚       โ””โ”€โ”€ config/
โ”‚           โ””โ”€โ”€ alith_config.json # Alith SDK configuration
โ”œโ”€โ”€ contracts/
โ”‚   โ”œโ”€โ”€ HyperMindSignals.sol    # Signal storage smart contract
โ”‚   โ””โ”€โ”€ AlithSignalMarket.sol   # Advanced signal marketplace
โ”œโ”€โ”€ deployment_info.md          # Deployment details
โ””โ”€โ”€ README.md

๐Ÿง  AI Technology Stack

Core AI Engine

  • Alith SDK Integration - Hyperion's AI co-agent for verified analysis
  • Technical Indicators - RSI, MACD, Bollinger Bands, pattern recognition
  • Machine Learning - LSTM networks for price prediction
  • Risk Management - Automated position sizing and risk assessment

Signal Generation Process

  1. Market Data Collection - Real-time price feeds and volume analysis
  2. Technical Analysis - Multi-indicator consensus scoring
  3. AI Analysis - Natural language market insights
  4. Signal Creation - BUY/SELL/HOLD with confidence levels
  5. Blockchain Submission - Verifiable signal storage
  6. Performance Tracking - Win rate and profitability metrics

Signal Types

  • STRONG BUY - High confidence bullish signals (80%+ confidence)
  • BUY - Moderate bullish signals (60-80% confidence)
  • HOLD - Neutral/consolidation signals (40-60% confidence)
  • SELL - Bearish signals with risk management
  • MONITOR - Watch list signals for potential entry

๐Ÿ“Š API Endpoints

EndpointMethodDescription
/GETAPI status and endpoints
/healthGETService health check
/signalPOSTGenerate single trading signal
/batchPOSTAnalyze multiple pairs
/pairsGETSupported trading pairs
/docsGETInteractive API documentation

Example Response

{
  "success": true,
  "pair": "ETH/USDC",
  "signal": {
    "pair": "ETH/USDC",
    "signal": "BUY",
    "confidence": 0.8,
    "analysis_summary": "Technical indicators show bullish momentum...",
    "technical_indicators": {
      "rsi": 65.2,
      "trend": "BULLISH",
      "patterns": ["BULLISH_TREND"],
      "support_level": 2100.50,
      "resistance_level": 2250.75
    }
  }
}

๐Ÿ”’ Smart Contract Integration

Deployed Contracts

  • Signal Registry: 0x4bF9Ff46CD70D7A28169bC028A822Df95bF4A049
  • Chain ID: 2001 (Hyperion Testnet)
  • Network: Metis Hyperion Testnet

Contract Functions

function submitSignal(
    string memory pair,
    uint8 signal,
    uint256 confidence,
    bytes32 proofHash
) external;

function executeSignal(uint256 signalId) external;
function getSignalHistory(address user) external view returns (Signal[] memory);

๐Ÿงช Performance Metrics

AI Model Performance

  • Signal Accuracy: 73-85% (backtested on historical data)
  • Response Time: <500ms per signal
  • Supported Pairs: 9 major crypto pairs
  • Update Frequency: Real-time on demand

Technical Specifications

  • Backend: Python 3.12 + FastAPI + Alith SDK
  • Frontend: Vanilla JS + Tailwind CSS
  • Blockchain: Solidity + Web3.py
  • AI/ML: scikit-learn + numpy + pandas


๐Ÿง‘โ€๐Ÿ’ป Development Team

Built by @JinyueXie for HyperHack 2025.

Powered by Hyperion Alith AI โ€ข Built with โค๏ธ for HyperHack 2025


๐Ÿ“œ License

MIT License - see LICENSE file for details.

Contributors

JinyueXie

38 commits

Languages

Python

95.6%

Cython

2.5%