Magpie

Magpie is your AI co-pilot for discovering, executing & protecting crypto investments.

ETHGlobal TaipeiShipped April 4, 2025#ai#defi
Repo
Magpie banner

About

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

How it's made

Flow: Discoverablity:

Data collection:

- Aggregates top traders data, fetches traders metrics which included 25 data points includes sharpe ratio, return rate etc. - Fetches the PnL using the 1inch api. - Collects top tokens performing on each tracks it pnl performance with different pairs, track top whales movement of it.

Strategy Creation:

- Above data is stored in cache first(redis or csv) and After data processing it’s stored in DB - Using the data collected it parses through the LLM models where we it figures best investment strategies with estimated pnl based on available data.

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.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Defi Pilot

Defi Pilot is your AI-powered crypto assistant for seamless portfolio tracking and smarter DeFi strategies. Monitor holdings, analyze performance, and get personalized insights—all tailored for 1inch users. Your trusted co-pilot in the world of decentralized finance.

Defidvisor

AI-Powered DeFi Advisor: A secure, user-friendly platform that provides personalized investment advice, risk assessment, and portfolio management. Get real-time insights, track whale activity, and access AI-driven DeFi strategies—all with seamless World ID login.

Vault AI

Vault AI is an AI-powered DeFi assistant that helps users manage their wallets, track token holdings and volatility, swap and stake assets through natural language commands, receive on-chain credit scores, set stop-loss alerts, create SIPs and optimize gas fees