Magpie is your AI co-pilot for discovering, executing & protecting crypto investments.
Magpie: The AI-powered DeFi Co-Pilot for Everyday Investors Overview Magpie is a DeFi AI (DeFAI) consumer application designed to simplify and automate the way users discover, execute, and protect crypto investments — all in a few clicks. It’s built for users who want access to profitable crypto strategies without spending hours analyzing markets or understanding complex DeFi tools.
Whether you're a retail investor, a new entrant into crypto, or a passive user seeking automated strategies, Magpie helps you invest smarter, faster, and safer using real-time market data, AI-generated insights, and seamless execution.
Core Features & Flow 🧠 1. Discoverability — Real-Time Market Intelligence Magpie continuously gathers data from on-chain and off-chain sources to power decision-making:
Top Trader Insights: Aggregates data from the best-performing traders across multiple chains. Captures 25+ performance metrics like:
Sharpe Ratio
Return Rate
Win/Loss Ratio
Average Holding Period
Token Momentum Tracking: Identifies top-performing tokens in real-time by tracking PnL across trading pairs.
Whale Movements: Tracks significant token movements by whales to signal bullish or bearish trends.
PnL via 1inch API: Uses real-time data to fetch historical and current Profit and Loss stats from 1inch.
📦 All this data is cached in Redis (or CSV for MVP) before being processed and stored in a structured database.
⚙️ 2. Strategy Creation — AI-Powered Investment Planning Magpie uses advanced AI models (LLMs like DeepSeek-R1.1.5B) to generate investment strategies based on the collected data:
Analyzes performance metrics to select traders or tokens worth mimicking.
Generates strategy outlines with estimated returns, risks, and holding periods.
Uses prompt engineering with Python to ensure strategies align with user goals (e.g. low risk, short term, high growth).
Strategies are shown to the user with PNL projections and rationale, offering clear choices without requiring technical knowledge.
🚀 3. Execution — One-Click, Smart Trade Routing Once a strategy is selected, users can instantly invest with one signature:
Magpie integrates 1inch Fusion to:
Route trades optimally across liquidity sources
Batch trades for gas optimization
Secure better pricing with MEV protection
All positions are created non-custodially, ensuring users always retain control of their funds.
🔒 4. Protection — Real-Time Risk Monitoring Each strategy has built-in variable thresholds and stop-loss triggers:
If a token or portfolio drops below a defined threshold, Magpie triggers an "intent to sell", offloading risk automatically.
This allows automated exits without manual intervention, ensuring capital protection.
Future integration with Guardian-style AI monitoring will allow deeper context awareness (e.g. macro events, whale dumping, chain outages).
📱 5. Cross-Platform Interface Magpie is built using:
React Native for seamless web and mobile app support
A fast backend powered by Rust and TypeScript
Python-based data pipelines for modeling and prompt engineering
Technology Stack Frontend: React Native (Web & Mobile)
Backend: Rust + TypeScript
Data Layer: Python (LLM parsing, metrics processing)
LLM: DeepSeek R1.1.5B (for generating strategies)
Execution: 1inch Fusion + user signature
Caching: Redis or flat-file CSV (MVP)
Monitoring: Rule-based engine for live position tracking
What Problem Does Magpie Solve? Most users:
Don’t know where to start in DeFi
Struggle to evaluate trading strategies or tokens
Find it hard to track whale activity and market sentiment
Are at risk of holding positions too long or panic selling
Magpie solves this by automating the full lifecycle of investing — from discovery to execution to monitoring — using AI and DeFi infrastructure.
MVP Summary The MVP version of Magpie delivers:
Aggregated insights from top traders
Real-time token and whale tracking
AI-generated investment strategies
One-click execution using 1inch
Automated monitoring with exit protection
Flow: Discoverablity:
Data collection:
Strategy Creation:
Execution:
Using 1inch fusion, we execute the investment in one click after collecting user’s signatures.
Monitoring:
Within strategy variable threshold is set for each holding, which trigger intent selling of the positions bought at magpie.
frontend is crossplatform support web and mobile app using react native. backend is created using rust and typescript. Data is using python LLM for testing we are using deepseek-r1.1.5B and Python for prompt engineering
For MVP: The app aggregates top trader insights, automates strategy execution, and ensures risk management through real-time portfolio monitoring.