Deutsch한국어日本語中文EspañolFrançaisՀայերենNederlandsРусскийItalianoPortuguêsTürkçePortfolio TrackerSwapCryptocurrenciesPricingIntegrationsNewsEarnBlogNFTWidgetsDeFi Portfolio TrackerOpen API24h ReportPress KitAPI Docs

How I Created a Team of AI Agents to Automate Stock and Portfolio Analysis

1M ago
bullish:

0

bearish:

0

Share

❗Disclaimer

This collection of AI agents — and the work described in this article — is intended solely for informational and educational purposes. The activities, experiments, and development efforts shared here reflect my personal experience working on this project as part of the Fetch.ai Innovation Lab. Neither I, Fetch.ai, nor the Fetch.ai Innovation Lab make any guarantees regarding the accuracy, completeness, or reliability of the outputs generated by these AI agents. Nothing in this article constitutes financial advice or professional recommendations. Readers should independently verify all information and consult with qualified financial professionals before making any investment or financial decisions. We bear no responsibility for any financial losses, damages, or liabilities resulting from the use of or reliance upon this system.

👀 The Vision

The idea was simple: could we create a conversational interface for understanding the stock market using autonomous agents? Not just one agent answering questions, but a network of specialists that collaborate like a team of analysts.

So, I got to work under the Fetch.ai Innovation Lab. That’s when we decided to create SimpleStock — a decentralized AI system consisting of seven core agents, each with a distinct role, working together to provide a complete stock market intelligence experience.

🛠️ How It Works

SimpleStock is built with Python, using Poetry for dependency management and environment setup. With help from the Fetch.ai Innovation Lab, we were able to leverage the power of uAgents, a framework developed by Fetch.ai that enables lightweight, secure, and interoperable agent-based systems. This support allowed us to bring our vision of a decentralized stock market intelligence system to life, where autonomous agents can communicate, collaborate, and reason independently.

For orchestration and flow control, I used LangGraph. This gave me a way to define how agents talk to one another based on the user’s query intent. Rather than hardcoding workflows, I could define dynamic graphs that adapt to query context — something that’s been a game-changer in scaling agent interactions.

To power the intelligence behind the AI agents, I integrated a variety of APIs and services that handled everything from data ingestion to semantic reasoning and web search:

  • Polygon.io: Provided both historical and real-time market data, including company details and stock prices — essential for agents handling stock information, analysis, and predictions.
  • Hugging Face Embeddings: Generated vector embeddings for company descriptions, financial summaries, and user queries. These embeddings enabled semantic search, similarity matching, and memory-efficient agent interactions.
  • ASI1.ai (ASI-1 Mini): Created by Fetch.ai, ASI-1 Mini handled large language model (LLM) processing to assist in advanced reasoning tasks.
  • Serper.dev: Provided real-time Google search results. Agents used this to scrape up-to-date news and web insights, ensuring their analysis reflected the latest information available.
  • SingleStore: Functioned as both a SQL database and a vector store. We cached OpenAI-generated embeddings for stock tickers here, which significantly improved query response times and reduced redundant computations across sessions.

Together, this tech stack created an intelligent, responsive, and scalable system of agents — each with their own specialized role but capable of working together to provide holistic stock market insights.

🤖 Meet SimpleStock’s AI Agents — powered by uAgents

  • Stock Prime Agent: The brain of the operation. It interprets natural language queries and delegates tasks to the appropriate agents.
  • Stock Info Agent: Returns fundamental company data — think market cap, exchange, description, etc.
  • Stock Analysis Agent: Offers financial insight on a particular stock
  • Stock Portfolio Agent: Analyzes multiple stocks as a cohesive portfolio.
  • Stock Predictor Agent: Leverages historical market data to forecast future price movements. This agent utilizes the Amazon Chronos T5 Small model, a pretrained time series forecasting model available on Hugging Face.
  • Stock Strategy Agent: Translates analysis into actionable trading strategies. Determines whether to “BUY”, “SELL”, or “HOLD”.
  • REST Agent: A gateway agent that exposes the system to external APIs and integrates with the frontend (built in Next.js).
Architecture Diagram for the SimpleStock Project

✅ Final Product

SimpleStock is the result of deeply integrating Fetch.ai’s cutting-edge technologies into a decentralized stock market intelligence platform. Powered by uAgents, this system brings AI-driven autonomy to financial analysis like never before.

The Stock Analysis Page 📊 uses Fetch.ai’s agent-based system to deliver intelligent insights on individual stocks. These AI agents collaborate to gather, analyze, and summarize real-time market data in a context-aware manner.

The Portfolio Analysis Page 📈 lets users input a list of stock symbols and receive a detailed, portfolio-level summary. Fetch.ai-powered agents handle everything from sector distribution to financial indicators, ensuring fast and intelligent analysis.

The Prime Agent Page 🤖 serves as a conversational interface to the entire Fetch.ai-powered agentic network. Through this single chat interface, users can access stock data, financial summaries, portfolio insights, and trigger advanced reasoning tasks — seamlessly routed to the appropriate AI agent.

The AI agents created using the uAgents framework collaborate as a decentralized network to analyze, interpret, and respond to stock market queries. This system essentially serves as SimpleStock’s intelligent, autonomous backend.

SimpleStock’s Home Page
SimpleStock’s Stock Analysis Page
SimpleStock’s Portfolio Analysis Page
SimpleStock’s Prime Agent Page

📝 Conclusion

This project wouldn’t have been possible without the incredible tools and support provided by Fetch.ai. Through the Fetch.ai Innovation Lab, I had the opportunity to explore cutting-edge multi-agent system design with real-world applications. The uAgents framework made it remarkably intuitive to build autonomous agents that could communicate securely and reliably, while LangGraph brought orchestration to life in a way that felt both powerful and natural.

Additionally, Fetch.ai’s own ASI-1 large language model played a key role in powering advanced reasoning and natural language understanding across the system. By combining these technologies, Fetch.ai enabled me to bring SimpleStock from concept to reality — pushing the boundaries of what intelligent, decentralized agents can do. 🚀


How I Created a Team of AI Agents to Automate Stock and Portfolio Analysis was originally published in Fetch.ai on Medium, where people are continuing the conversation by highlighting and responding to this story.

1M ago
bullish:

0

bearish:

0

Share
Manage all your crypto, NFT and DeFi from one place

Securely connect the portfolio you’re using to start.