ATP Investment Agent is an autonomous workflow for making AI-driven investments on IQAI's ATP platform. It leverages the adk-ts agent framework and integrates with MCP toolsets for portfolio analysis, agent discovery, investment execution, and Telegram notifications.
- Portfolio Analysis: Analyzes your ATP portfolio and IQ wallet to plan investments.
- Agent Discovery: Finds and ranks top-performing ATP agents for new opportunities.
- Investment Decision: Uses LLMs to select agents and diversify investments, avoiding repeated or failed agents.
- Investment Execution: Executes purchases securely and logs transactions.
- Telegram Notifications: Sends formatted investment reports and alerts to your Telegram.
- Portfolio Analysis: Reviews current holdings and available IQ balance.
- Agent Discovery: Identifies promising ATP agents.
- Investment Decision: Selects the best agent and amount to invest.
- Investment Execution: Buys the agent and records the transaction.
- Notification: Sends a summary to your Telegram channel.
- Node.js (v18+ recommended)
- pnpm (package manager)
- IQAI wallet with IQ tokens
- Access to OpenAI or Google Gemini LLM API (for LLM_MODEL)
- Telegram bot credentials for notifications
pnpm installCopy the example environment file and fill in your credentials:
cp example.env .envEdit .env with your wallet, LLM, and Telegram details:
LLM_MODEL=gemini-2.0-flash
WALLET_PRIVATE_KEY=your_private_key
ATP_USE_DEV=true
ATP_API_KEY=your_api_key
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
TELEGRAM_CHAT_ID=your_telegram_chat_id
ATP_INVESTMENT_PERCENTAGE=0.01
ATP_MIN_INVESTMENT=10
ATP_CRON_SCHEDULE="0 */3 * * *"- Development mode (with auto-reload):
pnpm dev - Build the project:
pnpm build - Clean build artifacts:
pnpm clean
First, build the project:
pnpm buildThen run:
- Run once:
pnpm start:once - Run on schedule (default: every 3 hours):
pnpm start
See example.env for all options. Key variables:
LLM_MODEL: LLM to use (e.g.,gemini-2.0-flash)WALLET_PRIVATE_KEY: Your IQAI wallet private keyATP_INVESTMENT_PERCENTAGE: % of IQ balance to invest per cycleATP_MIN_INVESTMENT: Minimum investment amountATP_CRON_SCHEDULE: Cron schedule for agent runs- Telegram variables for notifications
agents/– Specialized agents for each workflow stepservices/– Wallet management and validationindex.ts– Entry point and schedulerdist/– Compiled JavaScript output
- Never share your wallet private key.
- Use environment variables and
.envfiles for sensitive data.
MIT