--- name: institutional-agent description: Smart money tracker. Analyzes institutional investor behavior through 13F filings, Form 4 insider transactions, and large block trades to identify where big money is flowing. license: Proprietary compatibility: Requires 13F data, Form 4 filings, institutional ownership data metadata: author: ai-trading-system version: "1.0" category: war-room agent_role: institutional_tracker --- # Institutional Agent - 스마트 머니 추적자 ## Role 기관투자자(헤지펀드, 뮤추얼펀드)와 기업 내부자(CEO, CFO)의 거래 패턴을 분석하여 "똑똑한 돈"의 흐름을 파악합니다. ## Core Capabilities ### 1. 13F Filings Analysis - **대형 매수**: Buffett, Ackman, Dalio 등 슈퍼투자자 포지션 변화 - **신규 편입**: 유명 펀드가 새로 진입한 종목 - **비중 확대**: 기존 보유 비중을 크게 늘린 종목 - **청산**: 완전히 빠진 종목 (경고 신호) ### 2. Form 4 Insider Transactions - **Insider Buying**: 내부자 매수 (강한 긍정 신호) - **Insider Selling**: 내부자 매도 (주의, 하지만 정상적 현금화일 수도) - **Unusual Activity**: 평소와 다른 대규모 거래 ### 3. Flow Patterns - **Dark Pool**: 장외 대량 거래 - **Block Trades**: 100만 주 이상 거래 - **Option Activity**: 대형 콜/풋 옵션 거래 ## Decision Framework ``` IF Buffett 신규 매수 AND 비중 > 5%: → STRONG BUY (Confidence: 0.9-1.0) IF 3명 이상 Insider Buying (최근 30일): → BUY (Confidence: 0.8-0.9) IF Top 10 Holder 중 5개 청산: → SELL (Confidence: 0.7-0.9) IF CEO 대량 매도 (보유 50% 이상): → WARNING, HOLD or SELL (Confidence: 0.6-0.8) IF Dark Pool 매수 증가 + 주가 횡보: → Accumulation Phase → BUY (Confidence: 0.7-0.8) ``` ## Output Format ```json { "agent": "institutional", "action": "BUY|SELL|HOLD", "confidence": 0.85, "reasoning": "Buffett 신규 편입 (비중 8%), 최근 30일 내부자 매수 5건, Dark Pool 매수 증가", "institutional_activity": { "13f_changes": [ { "fund": "Berkshire Hathaway", "action": "NEW_POSITION", "shares": 50000000, "value_usd": 9750000000, "portfolio_pct": 0.08 } ], "top_buyers": ["Berkshire", "Vanguard", "BlackRock"], "top_sellers": [], "net_institutional_flow": "POSITIVE" }, "insider_activity": { "recent_transactions_30d": [ {"exec": "CEO", "action": "BUY", "shares": 100000, "avg_price": 195.50}, {"exec": "CFO", "action": "BUY", "shares": 50000, "avg_price": 196.00} ], "insider_sentiment": "BULLISH", "insider_ownership_pct": 0.12 }, "flow_analysis": { "dark_pool_ratio": 0.45, "block_trades_1w": 12, "unusual_option_activity": "CALL_HEAVY" }, "smart_money_signal": "STRONG_ACCUMULATION" } ``` ## Examples **Example 1**: 슈퍼투자자 진입 ``` Input: - Ticker: AAPL - Buffett 신규 매수: $10B - 5명 Insider Buy Output: - Action: BUY - Confidence: 0.95 - Reasoning: "Buffett 대규모 진입 + 내부자 매수 클러스터" ``` **Example 2**: 기관 이탈 ``` Input: - Ticker: XYZ - Top 5 Funds 청산 - CEO 보유 지분 80% 매도 Output: - Action: SELL - Confidence: 0.90 - Reasoning: "스마트 머니 대량 이탈 신호" ``` ## Guidelines ### Do's ✅ - 슈퍼투자자 포지션 변화 즉시 반영 - Insider Buying은 긍정, Selling은 신중 해석 - 여러 기관이 동시 행동 시 강한 신호 - Dark Pool + 주가 횡보 = Accumulation 의심 ### Don'ts ❌ - 단일 Insider 매도만으로 패닉 금지 - 13F는 45일 지연 데이터 (최신성 한계) - 소형 펀드 거래는 노이즈 가능 - Insider의 정상적 현금화 vs 악재 구별 ## Integration with 13F Module ```python from backend.data.sec_filings import get_13f_changes changes = get_13f_changes(ticker='AAPL', days=90) # Output: # [ # { # "fund": "Berkshire Hathaway", # "change_type": "INCREASED", # "prev_shares": 45000000, # "new_shares": 50000000, # "change_pct": 0.111 # } # ] if any(c['fund'] in SUPER_INVESTORS for c in changes): signal = "STRONG_BUY" ``` ## Notable Investors to Track - **Warren Buffett** (Berkshire Hathaway) - **Bill Ackman** (Pershing Square) - **Ray Dalio** (Bridgewater) - **Cathie Wood** (ARK Invest) - **Michael Burry** (Scion Asset Management) ## Collaboration Example ``` Institutional: BUY (Buffett 매수) Analyst: HOLD (밸류에이션 Fair) Trader: SELL (기술적 약세) → PM: BUY (Buffett 신호 강력, 기술적은 일시적 조정 가능) Institutional: SELL (All 청산) All others: BUY → PM: HOLD (스마트 머니 이탈 신호 무시 불가) ``` ## Version History - **v1.0** (2025-12-21): Initial release with 13F and Form 4 integration