A comprehensive financial advisor AI system that uses LLMs, multiple specialized agents, and parallel processes to provide real-time cryptocurrency intelligence and advice.
- Core LLM Agent/Orchestrator: Central brain that understands user queries and delegates tasks
- Portfolio Agent: Manages cryptocurrency portfolio tracking and Binance integration
- Query Agent: Handles data analysis, visualization, and natural language queries
- Vector Store: Stores and retrieves financial documents and knowledge
- SQLite Database: Stores structured portfolio data and technical indicators
- Clone the repository
- Install dependencies:
pip install -r requirements.txt- Create a
.envfile with the following variables:
OPENAI_API_KEY=your_openai_api_key
BINANCE_API_KEY=your_binance_api_key
BINANCE_API_SECRET=your_binance_api_secret
- Create necessary directories:
mkdir data
mkdir chroma_dbStart the FastAPI server:
python main.pyThe server will start at http://localhost:8000
POST /query: Process financial queriesGET /portfolio/summary: Get portfolio summaryPOST /documents/upload: Upload financial documentsGET /documents/search: Search financial documents
- Portfolio Analysis:
{
"query": "What's my average return in the last 6 months?",
"context": {}
}- Technical Analysis:
{
"query": "Show me technical indicators for BTC",
"context": {}
}- Market Data:
{
"query": "What's the current price of ETH?",
"context": {}
}- Real-time balance tracking
- Transaction history
- Portfolio performance analysis
- Asset allocation visualization
- RSI (Relative Strength Index)
- MACD (Moving Average Convergence Divergence)
- Bollinger Bands
- Historical price data
- Natural language queries
- Document processing
- Visualization tools
- Market trend analysis
The system follows a hub-and-spoke model:
- Core LLM Agent acts as the orchestrator
- Specialized agents handle specific tasks
- Shared memory maintains context
- Vector store and SQLite database store knowledge and data
Feel free to submit issues and enhancement requests.
MIT License