Grant Title: R SDK for CoW Protocol, bringing Quantitative Finance & DeFi Together
Author: Saw Simeon
GitHub: (sawsimeon)
About You
Experienced R Developer in Finance and Trading Tools. Creator and maintainer of igfetchr, an officially published CRAN package for retrieving, trading and analyzing live and historical forex market data from the IG Market igfetchr.
This package showcases deep expertise in building production-ready R packages: API integration, secure authentication, trade execution, rate-limit handling, data transformation into tibbles, comprehensive testing, and successful CRAN submission and approval. These exact skills transfer directly to building a robust and user-friendly R SDK for CoW Protocol.
Grant Category
Protocol Order Flow / Developer Tools
Grant Description
Problem
R is the dominant language among quantitative analysts, statisticians, hedge funds, university researchers, and data-science teams in both traditional finance and crypto. Many quants already use R for backtesting, risk modeling, statistical arbitrage, and on-chain analytics. Despite this, CoW Protocol currently lacks any native tooling for the R ecosystem, preventing a large segment of traders and researchers from easily integrating CoW’s superior batch auction settlement and MEV protection into their workflows.
Solution
This grant will fund the development and long-term maintenance of an official CoW Protocol R SDK (working title: cowr), fully tailored to the needs of quantitative DeFi users.
Grant Goals and Impact
- Dramatically increase CoW Protocol adoption among quantitative traders, researchers, and academic institutions.
- Enable seamless integration of CoW Protocol into existing R-based trading, research, and risk-management pipelines.
- Bring an entirely new demographic of high-value users (statisticians, quants, university labs) into the CoW community.
Milestones
Phase One – Development & Public Release (12 weeks)
The R package cowr will provide:
- Full querying of the CoW Protocol Subgraph (via GraphQL + httr2 → tidy data frames).
- Creation, signing, and submission of limit and market orders to the CoW Protocol API.
- Interaction with CoW Protocol settlement contracts (using direct JSON-RPC wrappers).
- Order metadata encoding and optional IPFS pinning through R.
- Utilities for fetching, decoding, and analyzing on-chain settlement and order-book data.
- Comprehensive unit and integration tests using testthat for API mocking.
- Full documentation with roxygen2, pkgdown site, and extensive vignettes.
- Feature parity with:
- a.
cowprotocol/cow-sdk - b.
cowprotocol/contracts(hashing utilities) - c.
cowprotocol/app-data
- a.
- Submission, approval, and publication on CRAN (the official R package repository, equivalent to PyPI for Python).
- A dedicated cowr.github.io documentation and tutorial portal for onboarding R users into CoW Protocol.
The project repository will be hosted under the @cowdao-grants organization as cow-r.
Phase Two – Maintenance & Commun@cowdao-grantsty Support
- Active maintenance, bug fixes, and feature requests for 12 months after Phase 1 completion.
- Ongoing updates to track new CoW Protocol features and API changes.
- Community support via GitHub Issues, Discord, and forum assistance for R users.
Grant Timeline
- Phase One: 12 weeks from grant approval
- Phase Two: 12 months of maintenance following Phase 1 completion
Funding Request
$8,500 USD for Phase One (development, testing, CRAN submission, documentation, and tutorials).
Funding will be used exclusively for development labor and related costs. Final distribution (if multiple contributors emerge) will be determined by the Grants Committee.
Once the R SDK reaches full functionality and is live on CRAN, all orders submitted through cowr will become eligible for the CoW Protocol Volume Grants Program. Any resulting volume rewards will be distributed to the original developer(s) and future maintainers according to the ratio determined solely by the Grants Committee.
Budget Breakdown
- $8,500 – Development, testing, CRAN submission, pkgdown + GitHub.io tutorial site
- Volume Grants Program eligibility (future)
Payment Information
Gnosis Chain Address for Grant Payment:
0xb1491e8eeec22f3ce1b8ea54f63c0646bf2b60d0
Referral
N/A
Terms and Conditions
By applying for this grant, I agree to be bound by the CowDAO Participation Agreement and the COWDAO Grant Terms and Conditions.