AAGT: High-Performance AI Agent Framework for Trading
AAGT (AI Agent Trade) is a modular, high-performance Rust framework designed for building autonomous trading agents.
From $5 VPS to Institutional Servers
AAGT is built to scale. It runs efficiently on a 1GB RAM budget (using file-based memory) but can scale up to handle complex swarms with vector databases like Qdrant.
Key Features
1. Ultra-Lightweight & Efficient
- Rust Native: Zero garbage collection pauses, minimal memory footprint.
- Resource Optimized: Runs primarily on
tokioasync runtime. - "Poor Man's" Mode: Includes
FileStore(JSONL) andMarkdownMemoryfor running agents on cheap VPS instances without heavy databases.
2. Hybrid Memory System
- Vector Store Interface: Plug in Qdrant for production or use JSONL files for local/low-resource setups.
- Explicit Memory: Agents can write Markdown notes (e.g.,
trading_log.md) to reflect on past decisions.
3. Execution Pipelines
Build complex trading strategies using a structured pipeline approach:
graph LR
A[Fetcher] --> B[Analyzer] --> C[Risk Check] --> D[Executor] --> E[Notifier]
- Lazy Execution: Steps only run when needed (saving tokens and API costs).
- Hybrid Logic: Mix LLM intelligence with hard-coded Rust logic (e.g., rigid risk controls).
4. Built-in Notifications
Zero-cost integration with your favorite platforms:
- Telegram (Bot API)
- Discord (Webhooks)
- Email (via HTTP APIs)
5. Trading-First Security
- Panic-Free Core: Rigorously tested to prevent runtime crashes.
- Risk Manager: Built-in modules to enforce drawdown limits and position sizing.
Quick Start
Installation
Add to your Cargo.toml:
[]
= { = "https://github.com/undead-undead/aagt" }
= { = "https://github.com/undead-undead/aagt" }
= { = "1", = ["full"] }
Example: A Low-Resource Trading Agent
This agent analyzes the market, checks risk, and notifies you contextually.
use *;
use ;
use TelegramStep;
use FileStoreConfig;
async
Project Structure
aagt-core: The brain. Traits, Pipelines, Memory, and basic Tools.aagt-providers: LLM integrations (Gemini, OpenAI, DeepSeek, etc.).aagt-macros: Proc-macros for simplifying Tool creation.
Philosophy
We believe AI trading should be democratized. Most frameworks assume you have unlimited budgets for GPUs and SaaS subscriptions. AAGT assumes you might be a student or independent researcher running on a tight budget, but who still demands professional-grade reliability.
Contributing
We welcome contributions! Please check out ARCHITECTURE.md to understand the system design before submitting PRs.
License
MIT