Add insider trading detection and wallet analysis tools#78
Add insider trading detection and wallet analysis tools#78
Conversation
- Add insider_tools.py with MCP tools for wallet analysis: - fetch_wallet_trades: fetch trades for a wallet address - analyze_wallet_performance: analyze trading patterns - detect_insider_signals: detect suspicious trading patterns - compare_wallets: compare trading between multiple wallets - Add verify_insider.py CLI tool for command-line analysis - Register insider tools in MCP server - Update SKILL.md with insider verification documentation https://claude.ai/code/session_01FfEDtiNoQgJkCjJyw63Wnm
✅ Deploy Preview for dr-manhattan-oss canceled.
|
Pull Request Review: Insider Trading Detection ToolsSummaryThis PR adds comprehensive insider trading detection and wallet analysis capabilities through 4 new MCP tools and a CLI example script. The implementation is well-structured and follows the repository conventions. Code Quality & Best PracticesStrengths
Areas for Improvement
Potential Bugs & IssuesCritical Issues
Medium Issues
Security Concerns
Test Coverage - CRITICAL GAPNo tests for the new functionality. The PR adds 926 lines of code but zero test coverage. Recommended:
RecommendationsBefore Merge (Critical)
Nice to Have
ConclusionThis is a well-implemented feature that adds valuable functionality. The code is clean, well-documented, and follows repository conventions. However, it needs test coverage before merging. Recommendation: Request changes to address critical bugs and add tests, then approve. |
Summary
Adds comprehensive insider trading detection and wallet analysis capabilities to Dr. Manhattan. This enables users to analyze trading patterns, detect suspicious activity, and compare wallets for coordinated trading behavior.
Key Changes
New MCP Tools (4 tools added):
fetch_wallet_trades- Retrieve all trades for a specific wallet addressanalyze_wallet_performance- Calculate trading metrics and patterns (win rate, market exposure, timing analysis)detect_insider_signals- Identify suspicious trading patterns (market concentration, large trades, burst trading, one-sided trading)compare_wallets- Compare trading patterns across multiple wallets to detect coordinationNew Module:
dr_manhattan/mcp/tools/insider_tools.pyExample Script:
examples/verify_insider.pyDocumentation: Updated
SKILL.mdImplementation Details
https://claude.ai/code/session_01FfEDtiNoQgJkCjJyw63Wnm