CloudAI-X (@cloudxdev)
2025-12-29 | โค๏ธ 601 | ๐ 51
How to setup a multi agent system? Bookmark it ๐
โThe Trading Floorโ
Multi-Agent Market Analysis Council to analyze a stock ticker
@Zai_org GLM-4.7 ๐ค @opencode
Agent framework: @crewAIInc
How it works?
- User enters a stock ticker to analyze
- 5 AI agents wake up, each with distinct expertise:
- Quant Analyst โ technical indicators & price patterns
- Sentiment Scout โ market mood & crowd psychology
- Macro Strategist โ sector dynamics & economic context
- Risk Manager โ volatility, drawdowns & position sizing
- Portfolio Chief โ synthesizes all perspectives
- Agents analyze independently using real market data
- They debate, challenge assumptions, and identify disagreements
- Portfolio Chief resolves conflicts and delivers a consensus recommendation
- Final output: buy/hold/sell rating with confidence level, position size, and key risks
How to built The Trading Floor?
- Chose CrewAI as the agent framework โ handles multi-agent orchestration out of the box
- Defined 5 agents with distinct roles, goals, and backstories in Python
- Built custom tools wrapping yfinance for real market data (prices, indicators, volatility)
- Configured sequential workflow โ specialists analyze first, Portfolio Chief synthesizes last
- Set up FastAPI backend with SSE to stream agent thoughts in real-time
- Built Next.js frontend to visualize the โboard of directorsโ deliberating live
- One environment variable (MODEL=openai/gpt-5.2) powers all agents
- Generated unique agent icons with AI image tools Total cost: $0 for the framework, pay only for LLM API calls
Tech stack:
- GLM-4.7 with opencode to build the app
- CrewAI (open source) for agent orchestration
- GPT-5.2 powering each agent
- FastAPI + SSE for real-time streaming
- Next.js frontend showing live agent deliberations
๋ฏธ๋์ด
![]()

๐ Related
- nano-banana-pro-can-generate-360-degree-visuals-so-i-wanted
- chain-of-view-makes-vision-language-models-move-through-a
- built-a-custom-video-gen-pipeline-for-drones-for-making-a
- thx-akhaliq-for-sharing-control-the-camera-control-the
- ive-built-a-custom-camera-control-gradio-component-for