Condor: Telegram Interface for Hummingbot¶
Condor is a powerful Telegram bot that provides a mobile-friendly interface to interact with your Hummingbot trading infrastructure. It allows you to monitor portfolios, manage trading bots, execute trades on both centralized (CEX) and decentralized (DEX) exchanges, and configure your entire trading setupβall from Telegram.
π Key Features¶
- π Portfolio Dashboard - Real-time portfolio tracking with PnL indicators, holdings breakdown, and graphical analysis
- π€ Bot Monitoring - Monitor and manage Hummingbot trading bots with live status and metrics
- π± CEX/CLOB Trading - Place orders, manage positions, and configure leverage on centralized exchanges
- π DEX Trading - Execute token swaps and manage liquidity positions via Gateway
- βοΈ Configuration - Complete system configuration through Telegram menus
- π Security - User ID whitelist and credential protection
ποΈ Architecture¶
Condor acts as a secure bridge between your Hummingbot instances and the Telegram platform. It translates user commands from Telegram into API requests that your Hummingbot instances understand.
System Architecture¶
Telegram User
β
Condor Bot
β
βββ Hummingbot Backend API β Trading Bots
βββ Gateway β DEX Protocols (Uniswap, Jupiter, etc.)
βββ GPT-4o + MCP (future AI features)
Integration Points¶
Hummingbot Backend API¶
- Portfolio data aggregation
- Bot status and control
- Order and position management
- Exchange connectivity
Gateway¶
- DEX token swaps
- Liquidity pool management
- Wallet management
- Multi-chain support
Project Structure¶
condor/
βββ main.py # Entry point
βββ servers.py # Server manager
βββ handlers/ # Command handlers
β βββ __init__.py
β βββ portfolio.py # Portfolio dashboard
β βββ bots/ # Bot monitoring
β β βββ __init__.py
β β βββ menu.py
β β βββ controller_handlers.py
β βββ cex/ # CEX/CLOB trading
β β βββ __init__.py
β β βββ trade.py
β β βββ orders.py
β β βββ positions.py
β βββ dex/ # DEX trading
β β βββ __init__.py
β β βββ swap.py
β β βββ liquidity.py
β β βββ pools.py
β βββ config/ # Configuration
β βββ __init__.py
β βββ servers.py
β βββ api_keys.py
β βββ gateway/ # Gateway management
β βββ __init__.py
β βββ menu.py
β βββ deployment.py
β βββ wallets.py
β βββ connectors.py
β βββ networks.py
β βββ pools.py
β βββ tokens.py
βββ utils/ # Utilities
β βββ auth.py
β βββ telegram_formatters.py
β βββ portfolio_graphs.py
β βββ trading_data.py
βββ data/ # Persistence
βββ condor_bot_data.pickle
Core Components¶
- Telegram Interface: The user-facing component running on Telegram clients, handling user input and displaying interactive menus.
- Command Handlers: The logic layer that processes specific commands (e.g.,
/portfolio,/bots) and determines the appropriate action. - API Integration Layer: A secure communication module that interacts with the Hummingbot Backend API using standard REST protocols.
- Data Processing Utilities: Helper functions that format raw data from Hummingbot into clear, readable messages and visualizations (charts/graphs).
π Why Use Condor?¶
- Accessibility: Manage your bots on the go without needing SSH access or complex terminal commands.
- Simplicity: Abstract away technical complexities with intuitive menus and buttons.
- Efficiency: Quickly react to market changes by managing positions and bots instantly.