About
Advanced Trading Strategies for 1inch Limit Order Protocol
This project extends the 1inch Limit Order Protocol v4.3.2 with three sophisticated trading strategies that bring institutional-grade functionality to decentralized finance. We've built a comprehensive suite of advanced trading extensions that demonstrate the full potential of the 1inch protocol, implementing strategies typically found only in centralized exchanges.
🛡️ Stop Loss Market Orders - TRUE STOP-MARKET EXECUTION - This is a critical advancement over existing 1inch stop loss functionality. While the current 1inch protocol only supports stop-limit orders (which create new limit orders when triggered), our StopLossMarketOrderV2 implements true stop-market execution that executes at market price immediately when triggered. This fills a major gap by providing a mechanism to trigger market execution rather than just placing another limit order that might not fill in volatile conditions.
🧊 Iceberg Orders - Progressive order revelation for large institutional trades that minimize market impact. Implements four distinct reveal strategies: FIXED_SIZE for consistent chunks, PERCENTAGE for dynamic sizing based on remaining amount, ADAPTIVE for market-responsive adjustments, and TIME_BASED for increasing urgency over time. Each strategy is gas-optimized at ~80k gas per reveal with Chainlink Automation compatibility.
⚖️ OCO Orders (One Cancels Other) - Advanced trading strategies with automatic order cancellation. Supports three trading strategies: BRACKET for take profit + stop loss execution, BREAKOUT for momentum-based trading, and RANGE for support/resistance trading. Features automatic cancellation when paired orders execute, keeper network automation for decentralized operation, and MEV protection with gas price limits.
Each extension integrates seamlessly with the 1inch protocol through the IAmountGetter interface, providing native compatibility while maintaining the protocol's flexibility and gas efficiency. Our implementation includes comprehensive security features, extensive testing coverage, and complete lifecycle demonstration scripts showing real-world usage scenarios.
Prizes
- 1inch · Expand Limit Order Protocol · 1st place
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






