Skip to content

Cryptiq is an AI-powered agent that helps you track your crypto portfolio, set price alerts, view real-time market data, and receive personalized insights.

License

Notifications You must be signed in to change notification settings

Gavino1730/Cryptiq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Cryptiq – AI Crypto Portfolio Telegram Bot

MIT License Python Build Status Telegram PRs Welcome

Track your crypto portfolio with AI-powered insights directly in Telegram

Features β€’ Installation β€’ Usage β€’ Contributing β€’ License


🚧 Development Status

Cryptiq is in early development (v0.1.0). This bot is experimental and under active development. Features may change, and bugs are expected. Use at your own risk.


⚠️ Legal Disclaimer

Cryptiq does NOT provide financial, investment, or trading advice. All information and analysis provided by this bot is for informational and educational purposes only. You are solely responsible for your investment decisions. The developers and maintainers of Cryptiq are NOT liable for any losses, damages, or consequences resulting from the use of this bot.


πŸ“– What is Cryptiq?

Cryptiq is a powerful Telegram bot that helps you:

  • πŸ“Š Track your cryptocurrency portfolio in real-time
  • πŸ’° Monitor your total portfolio value and individual holdings
  • πŸ”” Set price alerts for your favorite coins
  • πŸ“° Get the latest crypto news and market updates
  • πŸ€– Receive AI-powered market insights and analysis
  • 🌍 Use the bot in multiple languages
  • πŸ”’ Keep your data private and secure

All from the convenience of your Telegram app!


✨ Features

Core Features

  • Portfolio Management - Track multiple cryptocurrencies and your total portfolio value
  • Real-Time Prices - Get up-to-date price data from CoinGecko API
  • Price Alerts - Set custom alerts for specific price targets
  • Performance Tracking - Monitor portfolio changes over time with charts
  • Bank Balance - Track your fiat currency alongside crypto holdings
  • Trading Strategy - Document your investment approach

AI-Powered Features

  • Market Analysis - Get AI-generated insights about market trends
  • Smart Responses - Natural language interaction with the bot
  • Personalized Recommendations - Tailored to your portfolio and strategy

User Experience

  • Multi-Language Support - Available in multiple languages
  • Interactive Menus - Easy-to-use button-based navigation
  • Portfolio Visualizations - Pie charts and line graphs
  • Privacy-First - Your data stays on your server, never shared
  • Easy Setup - Simple onboarding process

πŸš€ Installation

Prerequisites

Step 1: Clone the Repository

git clone https://github.com/yourusername/cryptiq.git
cd cryptiq

Or download the ZIP file from GitHub and extract it.

Step 2: Install Dependencies

Create a virtual environment (recommended):

# Create virtual environment
python -m venv venv

# Activate it
# On Windows:
venv\Scripts\activate
# On Mac/Linux:
source venv/bin/activate

# Install requirements
pip install -r requirements.txt

Step 3: Configure Environment Variables

  1. Copy the example environment file:

    # On Windows:
    copy .env.example .env
    
    # On Mac/Linux:
    cp .env.example .env
  2. Edit .env and add your API keys:

    • TELEGRAM_TOKEN - Get from @BotFather on Telegram

      1. Message @BotFather and type /newbot
      2. Follow the prompts to create your bot
      3. Copy the token BotFather gives you
    • OPENAI_API_KEY - Get from OpenAI Platform

      1. Create an OpenAI account
      2. Go to API keys section
      3. Create a new API key
      4. Copy the key (you won't see it again!)

    Your .env file should look like:

    TELEGRAM_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
    OPENAI_API_KEY=sk-proj-abcdefghijklmnopqrstuvwxyz

Step 4: Run the Bot

python main.py

You should see: Cryptiq bot is running...


πŸ“± Usage

Getting Started with Your Bot

  1. Find your bot on Telegram

    • Search for the bot name you chose with BotFather
    • Or click the link BotFather provided
  2. Start interacting

    • Type /start to begin
    • Follow the onboarding process
    • Set up your portfolio

Available Commands

Command Description
/start Start the bot or reset your profile
/menu Show main menu with interactive buttons
/portfolio View your current portfolio and performance
/setbank Set or update your bank balance
/setholdings Add or update crypto holdings
/setstrategy Define your trading strategy
/setalert Create price alerts for specific coins
/news Get latest cryptocurrency news
/settings Configure bot settings
/language Change interface language
/deleteprofile Delete all your data from the bot
/help Show all available commands

Example Workflow

You: /start
Bot: Welcome to Cryptiq! Let's set up your portfolio...

You: /setbank 10000
Bot: Bank balance set to $10,000

You: /setholdings BTC 0.5
Bot: Holdings updated: 0.5 BTC

You: /portfolio
Bot: [Shows your portfolio with charts and current values]

You: /setalert BTC 50000
Bot: Alert set! I'll notify you when BTC reaches $50,000

πŸ—οΈ Project Structure

cryptiq/
β”œβ”€β”€ main.py              # Main entry point, bot initialization
β”œβ”€β”€ handlers.py          # Command and message handlers
β”œβ”€β”€ utils.py             # Utility functions (API calls, charts, etc.)
β”œβ”€β”€ database.py          # Data storage and retrieval
β”œβ”€β”€ keyboards.py         # Telegram keyboard layouts
β”œβ”€β”€ requirements.txt     # Python dependencies
β”œβ”€β”€ .env.example         # Environment variables template
β”œβ”€β”€ .gitignore          # Git ignore rules
β”œβ”€β”€ README.md           # This file
β”œβ”€β”€ LICENSE             # MIT License
β”œβ”€β”€ CONTRIBUTING.md     # Contribution guidelines
β”œβ”€β”€ CODE_OF_CONDUCT.md  # Community guidelines
β”œβ”€β”€ PRIVACY_POLICY.md   # Privacy policy
└── CHANGELOG.md        # Version history

πŸ› οΈ Technology Stack

  • Python 3.8+ - Core programming language
  • python-telegram-bot - Telegram Bot API wrapper
  • OpenAI API - AI-powered responses and analysis
  • CoinGecko API - Real-time cryptocurrency data
  • matplotlib - Chart generation
  • requests - HTTP requests
  • python-dotenv - Environment variable management
  • pytz - Timezone handling

πŸ”’ Security & Privacy

  • API Keys: Stored in .env file (never commit this file!)
  • User Data: Stored locally in JSON files on your server
  • Data Sharing: Your data is NEVER shared with third parties
  • Data Deletion: Use /deleteprofile to permanently delete your data
  • Open Source: Full transparency - inspect the code yourself

See PRIVACY_POLICY.md for complete details.


🀝 Contributing

We love contributions! Whether it's:

  • πŸ› Bug reports
  • πŸ’‘ Feature requests
  • πŸ“ Documentation improvements
  • πŸ”§ Code contributions

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.


πŸ—ΊοΈ Roadmap

Version 0.2.0 (Planned)

  • Unit tests and CI/CD pipeline
  • Exchange API integration (Binance, Coinbase)
  • Automated trading capabilities
  • Advanced portfolio analytics
  • Historical performance tracking

Version 0.3.0 (Future)

  • Price prediction models
  • Trade signal generation
  • Multi-exchange support
  • DeFi protocol integration
  • NFT portfolio tracking

Long-term Vision

  • Web dashboard
  • Mobile apps (iOS & Android)
  • Desktop application
  • Community features & leaderboards
  • Premium subscription tier

See CHANGELOG.md for completed features and version history.


πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


⚠️ Disclaimer

IMPORTANT: Cryptiq is provided "as is" without warranty of any kind. This bot:

  • Does NOT provide financial advice
  • Should NOT be used as the sole basis for investment decisions
  • May contain bugs or inaccuracies
  • Is NOT responsible for any financial losses

Always do your own research (DYOR) and consult with licensed financial advisors before making investment decisions.


πŸ†˜ Support

Troubleshooting

Bot won't start?

  • Check Python version: python --version (should be 3.8+)
  • Verify all dependencies are installed
  • Confirm .env file exists and contains valid API keys
  • Check terminal for error messages

Bot not responding in Telegram?

  • Ensure the bot is running (Cryptiq bot is running... message)
  • Verify your Telegram token is correct
  • Check if BotFather shows your bot as active
  • Look for errors in terminal output

API errors?

  • Verify OpenAI API key is valid and has credits
  • Check CoinGecko API rate limits
  • Ensure internet connection is stable

Still need help?

  • Open an issue
  • Check existing issues for solutions
  • Join our community discussions

πŸ™ Acknowledgments


πŸ“§ Contact


⭐ Star this repo if you find it useful!

Made with ❀️ by Gavin Galan

Report Bug β€’ Request Feature β€’ View Roadmap

About

Cryptiq is an AI-powered agent that helps you track your crypto portfolio, set price alerts, view real-time market data, and receive personalized insights.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published