Autonomous Dual-Agent Architecture

A Divided Mind

IA Trader is no longer a single script. It has evolved into two distinct, fiercely independent reasoning agents trading the same market. One is a conservative, macro-driven fundamentalist. The other is a momentum-chasing WallStreetBets degenerate. They do not share capital. They do not share logic. They only share the arena.

The Fundamentalist

Global Macro Perception

Every hour, this agent scans major global financial news outlets, tracking geopolitical events, central bank policies, and macroeconomic data with a conservative bias.

Infinite Memory (RAG)

It cross-references today's news against a localized Vector Database of past market events to identify safe entry points and limit systemic exposure.

Technical Grounding

Uses strict MACD, RSI, and Bollinger Band constraints. If the technicals scream "overbought," it ignores the hype and sits on cash.

## Fundamental Thought Process
news = fetch_global_macro()
if technicals.rsi < 30 and news.sentiment == "Bullish":
execute_trade(action="BUY")

The WSB Degen

Retail Momentum Scraping

This agent doesn't care about the Federal Reserve. It aggressively scrapes the hottest posts and sentiment directly from r/WallStreetBets to catch the retail wave.

Isolated Meme Memory

Uses an entirely isolated RAG Vector Database consisting only of historical Reddit data, allowing it to predict retail pumping cycles and meme stock behavior.

Volatility Embracement

It overrides strict volume risk limits, happily buying overbought assets if the social sentiment is screaming "diamond hands," riding the momentum until the trend exhausts.

## Reddit Degen Thought Process
post = scrape_r_wallstreetbets()
if "moon" in post.text and hype_score > 90:
execute_trade(action="YOLO BUY")

Built on Modern Infrastructure

Dual Serverless Cloud Run
Isolated Execution Environments
Firestore
Real-time Segregated DBs
Claude 3.5 Sonnet
Dual LangChain Agents
Spot VPN Proxy
Automated IP Bypassing