# GP 2: Creating Custom CoW Protocol API

**URL:** <https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069>\
**Category:** Rejected Grants\
**Tags:** grant-rejected\
**Created:** [August 6, 2022, 6:26am UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069 "2022-08-06T06:26:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexMultifarm](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlexMultifarm](https://forum.cow.fi/u/AlexMultifarm)\
**Post date:** [August 6, 2022, 6:26am UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/1 "2022-08-06T06:26:34Z")

</div>

Grant Title:

Custom CoW Protocol API - focused around CoW vs AMM trades

* * *

Author:

Alexander from Multifarm

[infol@multifarm.com](mailto:infol@multifarm.com)

* * *

About You:

I am part of the Business Development team at Multifarm. I have prior experience as a Lawyer before changing my career and focusing on blockchain technology/cryptocurrency. I then was part of an Educational platform for Crypto related content in Africa. I then did multiple talks & events around South Africa where I started working with FTX to help spread awareness in South Africa.

Multifarm is a DeFi Data Platform that builds dashboards and data solutions for other protocols and DAOs. By starting out and building the most comprehensive yield farming dashboard in the DeFi industry we discovered the need to support other protocols in extracting data from the blockchain and making it visible in the form of different types of dashboards. Multifarm’s dashboards are easy to understand, fully customizable and benefit protocols and users alike.

* * *

Additional Links:

* * *

Grant Category:

Integrations and Protocol order flow

* * *

Grant Description:

Build an API where CoW team use to accurately identify the P2Peer & P2Protocol order flow going through their settlement contract for their tracking/monitoring/visualization needs

Cow Protocol API:

- AMM routed vs CoW comparison (USD Values, Trade Count)
- Total Value transacted
- Total value transacted in %
- Numbers of trades

* * *

Grant Goals and impact:

Our goal & vision is around creating an API whereby the CoW team can accurately identify the P2Peer & P2Protocol order flow going through their settlement contract for their tracking/monitoring/visualization needs.

* * *

Milestones:

- Agree on API type, data format, speed
- Extract the full batch auctions data from CoW protocol contracts
- Agree on a definition of Full CoW, Partial CoW and No CoW
- For Partial and No CoW, account for multi-hops and aggregator trades
- Inspect and analyze the extracted data for a pattern to label trades as per the agreed definition
- Testing and iteration
- Develop endpoint to subscribe and listen to batch auction settlement transactions & automatically categorize them as per the agreed conditions
- Prepare API documentation

* * *

Grant Timeline:

Our projected timeline is 5 - 6 weeks for completion of the CoW Protocol Custom API.

* * *

Funding Request:

We project the cost for the CoW Protocol Custom API at $40,000.00

* * *

Budget Breakdown:

We plan to allocate 1 Smart Contract Engineer, 1 Lead Backend Dev and 1 Project Manager to this project. The timeline for this will be 5-6 weeks.

Please read the detailed budget breakdown in our longer proposal: [V1.3 - Multifarm.fi x CoW Protocol Proposal - 02-08-22 - Google Docs](https://docs.google.com/document/d/1jNuhBzD6BJ2BK0x5HFm5kecqhoQWwYUmj-QQ-jB_Zfo/edit)

* * *

Gnosis Chain Address (to receive the grant):

0x04dd23a3B1A1C1Fe257f890B37466adFf7240F80

* * *

Other Information:

The primary goal is to accurately identify CoW vs AMM trades

After the API is complete, the CoW team can comfortably use it for 6 months without any additional cost.

We also offer more dev-hours as needed, if you need future development by the Multifarm team. We could place a part-time dev or by the hour on future feature ideas/requests

* * *

Referral:

No

* * *

Terms and conditions:

---

<div class="post-metadata">

**Author:** ![Master\_CoW](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/master_cow/32/626_2.png) [@Master\_CoW](https://forum.cow.fi/u/Master_CoW)\
**Post date:** [August 17, 2022, 11:01am UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/2 "2022-08-17T11:01:50Z")

</div>

Hi @AlexMultifarm, thank you very much for your detailed proposal. Apologies for the delays answering the request.

This Grant proposal makes a lot of sense. One of the best ways to sell on CoW Protocol value propositions is through the usage of data points to prove the users that indeed the protocol is capable of substantially obtaining big price improvements via CoWs. Not to mention the MEV protection aspect of CoWs…

Since this proposal focuses on what I am master of, the CoWs, I feel personally biased to pass it 🙃, nonetheless, I will relay it to the grants committee for evaluation and will follow up shortly.

---

<div class="post-metadata">

**Author:** ![netrunner.eth](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/netrunner.eth/32/252_2.png) [@netrunner.eth](https://forum.cow.fi/u/netrunner.eth)\
**Post date:** [August 19, 2022, 6:04am UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/3 "2022-08-19T06:04:03Z")

</div>

This grant application has my consideration on two conditions.

- The API source code is made open-source, so CowDAO may self-host the proposed software.
- Outside of the requested $40,000 there are no ongoing fees.

I believe this way will ensure that CowDAO is not “locked-in” to paying for services it can easily self-host, and improves Value for Money (VfM).

---

<div class="post-metadata">

**Author:** ![ManuelMultifarm](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/manuelmultifarm/32/582_2.png) [@ManuelMultifarm](https://forum.cow.fi/u/ManuelMultifarm)\
**Post date:** [August 19, 2022, 9:19am UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/4 "2022-08-19T09:19:17Z")

</div>

Thanks for your feedback guys. Just updated to Google Sheet and also posting it here for transparency:

Updated Notes - August 19th

- We will open source the code and make a public repo on Github
- It will be a modular docker project (i.e. to launch services easily)
- Beside the 40k USD fee there will be no additional cost for the CoW team, since they can self host in order to improve Value for Money (VfM)
- CoW Protocol will agree to shared tweet regarding the received grant and credit Multifarm in protocol documentation (can also be a short sentence)
- The idea is, that the API can be used for other consecutive projects who build on top (e.g. Twitter, Discord Bot)

---

<div class="post-metadata">

**Author:** ![Chim9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/chim9/32/417_2.png) [@Chim9](https://forum.cow.fi/u/Chim9)\
**Post date:** [August 29, 2022, 4:25pm UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/5 "2022-08-29T16:25:44Z")

</div>

I’m giving my support to this grant application, the grant application, goals, as well as the updates following Netrunner’s concerns are convincing for me.

---

<div class="post-metadata">

**Author:** ![netrunner.eth](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/netrunner.eth/32/252_2.png) [@netrunner.eth](https://forum.cow.fi/u/netrunner.eth)\
**Post date:** [August 30, 2022, 1:19am UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/6 "2022-08-30T01:19:32Z")

</div>

Based on the feedback I am signalling my support for this grant application.

---

<div class="post-metadata">

**Author:** ![fairlight](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/fairlight/32/585_2.png) [@fairlight](https://forum.cow.fi/u/fairlight)\
**Post date:** [August 31, 2022, 2:18pm UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/7 "2022-08-31T14:18:33Z")

</div>

After having reviewed the grant application and discussing this with the committee, I also give my support for this grant.

---

<div class="post-metadata">

**Author:** ![ManuelMultifarm](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/manuelmultifarm/32/582_2.png) [@ManuelMultifarm](https://forum.cow.fi/u/ManuelMultifarm)\
**Post date:** [August 31, 2022, 2:48pm UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/8 "2022-08-31T14:48:49Z")

</div>

Posting it here for Transparency:

Updated Notes (per discussion/suggestion from netrunner.eth) - August 31st:

Payment Terms:

50% upfront and the other 50% upon delivery and acceptance (with the code reviewed by one of the team).

---

<div class="post-metadata">

**Author:** ![ManuelMultifarm](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/manuelmultifarm/32/582_2.png) [@ManuelMultifarm](https://forum.cow.fi/u/ManuelMultifarm)\
**Post date:** [September 26, 2022, 3:34pm UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/9 "2022-09-26T15:34:05Z")

</div>

(post deleted by author)

---

<div class="post-metadata">

**Author:** ![ManuelMultifarm](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/manuelmultifarm/32/582_2.png) [@ManuelMultifarm](https://forum.cow.fi/u/ManuelMultifarm)\
**Post date:** [September 26, 2022, 6:05pm UTC](https://forum.cow.fi/t/gp-2-creating-custom-cow-protocol-api/1069/10 "2022-09-26T18:05:32Z")

</div>

Update: Need exact clarification again with team and then re-post.
