Author: Tantodefi.eth & Bhavya Gor
Date: January 12, 2026
Category: Developer Tooling
Funding Requested: 10,000 xDAI + 20,000 vested COW tokens
Gnosis Chain Address: 0x9B2FB7a8d227cDaA8002f80e8c8A99a19Bb1b969
GitHub: Tantodefi | Bhavya Gor
Contact: tantodefi.eth@proton.me | bhavyagor12@gmail.com
About You
We are Tantodefi.eth and Bhavya Gor, experienced developers specializing in blockchain integrations, API development, and trading systems. We’ve contributed to open-source DeFi projects, including smart contracts, algorithmic trading tools, and developer resources for platforms like BUIDLGuidl’s Scaffold-ETH. Our expertise lies in creating accessible tools for DeFi ecosystems, with a focus on standardized APIs for algorithmic trading. This is our second proposal for Cow DAO and it is heavily related to expanding access to the anti-MEV features of cow swap’s batch auction features enabled by the cow-sdk. Our first proposal was for a CCXT connector library (a popular trading library that standardizes the APIs of numerous CEXs and DEXs helping algorithmic developers and automated traders buid their strategy once and deploy/trade everywhere).
Project Overview
This proposal seeks funding from CoW DAO’s retroactive funding round to develop a Hummingbot Gateway connector for the CoW SDK, enabling seamless integration of CoW Protocol’s intent-based trading into the widely used Hummingbot framework. This will allow algorithmic traders to leverage CoW’s MEV-protected executions through a unified API, reducing integration barriers and driving protocol adoption. The project builds on prior efforts, such as the community-built Python SDK[1], to enhance developer accessibility and ecosystem growth.
For full details, including feasibility, implementation, and impact metrics, see below.
Team
- Tantodefi.eth (Fullstack Developer): Blockchain engineer with expertise in DeFi integrations and algorithmic trading. Contributed to exchange adapters and participated in BUIDLGuidl hackathons. GitHub: tantodefi, X: @tantodefi.
- Bhavya Gor (Fullstack Developer): Full-stack developer focused on API wrappers and Web3 testing. Built TypeScript/Python SDKs and DeFi tools at BUIDLGuidl. Winner of numerous web3 hackathons. GitHub: bhavyagor12, X: @bhavya_gor.
Project Details
Motivation and Rationale
The CoW Protocol’s intent-based architecture, powered by the CoW SDK[2], offers superior executions with MEV protection and gas efficiency. However, algorithmic traders using Hummingbot—the leading open-source bot framework with over 50,000 downloads—face integration hurdles. This connector will map CoW SDK functions (e.g., quoting, order management) to Hummingbot Gateway’s API, enabling plug-and-play usage for trading bots and strategies.
Key Benefits:
- Ease of Integration: Add CoW as a Hummingbot Gateway “Router” connector with methods like
quoteandtrade. - Increased Usage: Enable algo traders to route orders to CoW, boosting TVL and solver activity.
- Differentiation: Custom quote comparators highlight CoW’s advantages (e.g., 1-5% execution savings) over DEXs like Uniswap.
- Ecosystem Growth: Open-source Hummingbot contribution[3] attracts builders for AI agents and automated trading.
Feasibility
CoW’s batch auction model differs from order-book systems, but Hummingbot Gateway supports partial implementations for DEX routers. We assessed:
- Compatibility: Map async quoting/orders via polling, inspired by DEX connectors (e.g., Uniswap).
- Async Handling: SDK-based polling with configurable intervals.
- Rate Limiting: Mirror SDK logic (10-20 quotes/min) to prevent IP blocks.
- Missing Features: Disable order books/tickers; synthesize symbols from metadata.
- Enhancements: Add
compareQuoteWithOtherExchangesfor multi-venue benchmarking.
This ensures 70-80% Hummingbot Gateway coverage, focusing on trading, similar to prior integrations[1:1].
Implementation
We will implement a TypeScript “Router” connector for Hummingbot Gateway (repository: GitHub - hummingbot/gateway: Middleware that standardizes DEX API endpoints on different blockchain networks), leveraging the official CoW TypeScript SDK[2:1]. The SDK will be initialized with the user’s chain ID and signer (via wallet integration in Hummingbot), enabling high-level access to CoW Protocol features while handling rate limiting and polling for asynchronous batch auction settlements.
The connector will map core CoW SDK methods to Hummingbot Gateway’s required router interface (primarily /quote-swap and /execute-swap endpoints, plus supporting methods like order status polling):
Key SDK methods and mappings:
- Quoting: Use
TradingSdk.getQuote(parameters)orOrderBookApi.getQuote(quoteRequest)– Computes a simulated execution price based on intent parameters (sellToken, buyToken, amount, kind: ‘sell’/‘buy’, receiver, etc.). Maps directly to Hummingbot’squoteendpoint, returning expected output, price impact, and gas estimate. - Order Creation / Trade Execution: Use
TradingSdk.postSwapOrderFromQuote()(high-level) orOrderBookApi.sendOrder()afterOrderSigningUtils.signOrder()– Submits a signed intent/order for batch auction execution. Maps to Hummingbot’strade/execute-swapendpoint, handling slippage via validTo deadline and returning the order UID. - Order Status: Use
OrderBookApi.getOrder(orderId)– Polls for order details (pending, filled, cancelled, expired). Implemented via polling loop in the connector for asynchronous status updates. - Cancel Order: Use
OrderBookApi.sendSignedOrderCancellations()afterOrderSigningUtils.signOrderCancellations()– Submits signed cancellation for pending orders. - Fetch Trades: Use
OrderBookApi.getTrades({ orderId })– Retrieves execution details for settled orders. - Markets/Tokens: Supported tokens will be fetched via the CoW API endpoint
/tokens(or cached from SDK metadata), synthesizing market pairs for Hummingbot’s market loading.
Limitations Assessment:
CoW Protocol’s intent-based model (users submit preferences as signed messages, delegated to solvers for execution in batch auctions) introduces key differences from traditional exchanges:
- No Real-Time Market Data: Batch auctions (every ~30-60 seconds on mainnet) mean no order books, tickers, or OHLCV data. Solvers optimize post-submission using off-chain liquidity, leading to delayed executions and variable final prices.
- Asynchronous Execution: Orders are intents, not immediate; status requires polling (e.g., every 10-30 seconds via getOrder) as no websockets exist.
- Order Types: Primarily limit-style intents; market orders simulated via quotes with tight deadlines. No advanced types like stop-loss natively (can be emulated via custom bots).
- Partial Fills: Supported but not default; MEV protection is built-in, reducing front-running risks.
- Dependencies: Requires user wallet signer for order signing; balances fetched via on-chain calls, not SDK.
Optimal Integration into Hummingbot Gateway Router Adapter:
- Core Focus: Implement mandatory router endpoints (
quote-swapfor getQuote,execute-swapfor postOrder/postSwapOrderFromQuote) with polling for status/trades. - Disabled Features: Configure unsupported router features (e.g., real-time order books, websockets) as false.
- Custom Extensions: Add optional comparator to benchmark CoW quotes against other Gateway routers; include example polling-based risk management script.
- Polling and Rate Handling: Built-in configurable polling with SDK-aware rate limits.
This approach leverages the SDK’s high-level abstractions for simpler, more maintainable code while fully supporting Hummingbot’s router schema for intent-based trading.
Milestones
The project spans 5 weeks (January 12 - February 16, 2026):
| Milestone | Description | Timeline | Deliverable | Verification |
|---|---|---|---|---|
| 1: Research and Setup | Analyze SDK/Hummingbot Gateway; review DEX connectors; prototype class. | Jan 12 - Jan 18 (Week 1) | Feasibility doc, prototype. | GitHub commit. |
| 2: Core Implementation | Build order lifecycle, polling, rate limiting. | Jan 19 - Feb 01 (Weeks 2-3) | Functional connector, basic tests. | 80% test coverage. |
| 3: Advanced Features and Testing | Add comparator/bot; tests/docs. | Feb 02 - Feb 08 (Week 4) | Beta version, docs. | 90%+ test coverage; draft README. |
| 4: Submission and Review | Submit PR to Hummingbot Gateway; iterate. | Feb 09 - Feb 16 (Week 5) | Merged PR, usage guide. | Hummingbot merge; metrics report. |
Budget
Total: 10,000 xDAI + 20,000 vested COW (12-month vesting).
| Category | Amount (xDAI) | Justification |
|---|---|---|
| Development | 8,000 xDai | 40 hours @ $200/hr (research, coding). |
| Testing/Documentation | 1,000 xDai | Testing and docs. |
| Community Engagement | 1,000 xDai | Feedback, PR reviews, features. |
| Vested COW Tokens | 20,000 vCow | Long-term alignment + 1 year maintenance of gateway router |
| Prefer xDAI for liquidity. |
Impact and Metrics
- Quantitative: Hummingbot downloads (GitHub); CoW tx uplift (unique tags); comparator savings (1-5%). Target: 10-20% algo volume growth in 6 months.
- Qualitative: Forum feedback; GitHub stars/forks; developer contributions.
- Verification: Open-source GitHub; on-chain analytics.
This builds on grants[1:2], expanding CoW’s algo trading reach.
Additional Notes
We welcome community feedback to refine this proposal. The project leverages insights from the Python SDK grant[1:3] for robust integration practices.
CoW DAO Grant Agreement
By submitting this proposal, we agree to adhere to the terms outlined in the CoW DAO Grant Agreement. We commit to transparency, timely delivery of milestones, and open-source contributions to maximize value for the CoW ecosystem.
Hummingbot Gateway Contributing
Previous Proposal: HackMD
We look forward to your feedback and to moo-ve forward with our second proposal! ↩︎
