# Grant Application - Ladder trading via the CoW programmatic order framework

**URL:** <https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021>\
**Category:** CoW Grants Program\
**Created:** [November 17, 2023, 11:46am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021 "2023-11-17T11:46:55Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![svanas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/svanas/32/984_2.png) [@svanas](https://forum.cow.fi/u/svanas)\
**Post date:** [November 17, 2023, 11:46am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/1 "2023-11-17T11:46:55Z")

</div>

**Grant Title:**  
[Ladder](https://github.com/svanas/ladder) is a crypto trading bot that automates the strategy of incremental buying or selling of a crypto asset (rather than opting for a single price).

**Author:**  
Stefan van As  
email: [ladder-crypto@runbox.com](mailto:ladder-crypto@runbox.com)  
GitHub: [svanas (Stefan) · GitHub](https://github.com/svanas)

**About You:**  
I’m a (Delphi and Rust and Go) developer and Ethereum consultant. In the past, I worked for Macromedia and Adobe and 1Password. I am the lead dev of a [web3 implementation for the Delphi programming language](https://github.com/svanas/delphereum).

**Additional Links:**  
Medium: [https://svanas.medium.com](https://svanas.medium.com)  
Developer Story: [https://svanas.github.io](https://svanas.github.io)

**Grant Category:**  
Integrations

**Grant Description:**  
Trading crypto is a game of dealing with harsh volatility and the uncertainties of timing the market. Most traders get it wrong. Throw in human emotions and all you get is anxiety rather than profits. Ladder trading is a strategy to minimize the risks and reap greater rewards. This software automates the strategy while removing human emotions. At the time of this writing, [Ladder](https://github.com/svanas/ladder) supports mostly CEXes such as Coinbase and Bitstamp and Bittrex and Binance. We are planning on adding support for DEXes.

**Grant Goals and Impact:**  
We will want to add support for CoW’s programmatic order framework to [Ladder](https://github.com/svanas/ladder). This will allow our users to trade on a DEX while bringing volume to the CoW protocol ecosystem.

**Milestones:**  
We have identified the following milestones:

**Milestone 1 (2 weeks)**  
Implement the CoW programmatic order framework. At the end of this milestone, we should deliver a beta build that supports CoW.

**Milestone 2 (2 weeks)**  
Test [Ladder](https://github.com/svanas/ladder) with the CoW protocol. At the end of this milestone, we should have identified and fixed the bugs.

**Milestone 2 (1 week)**  
Document the CoW integration. At the end of this milestone, we should deliver a medium article that explains how to set [Ladder](https://github.com/svanas/ladder) up with CoW.

**Funding Request:**  
We believe we need 5 weeks to complete all of the above milestones. We are asking for $10.000 in xDAI or COW tokens.

**Budget Breakdown:**  
In total, we believe we need 200 hours to complete all of the above milestones. We are asking for $10.000 to compensate for these hours at a rate of $50/hour.

**Gnosis Chain Address (to receive the grant):**  
0x89c769e87b896EAD61933f6e031bEaa85987D95c

**Terms and Conditions:**  
By submitting this grant application, I acknowledge and agree to be bound by the [CoW DAO Participation Agreement](https://cloudflare-ipfs.com/ipfs/Qmf9MYhcG2pFrDoVy13p6FWeVF4nG9HbJvRfYYbhazTCFe) and the [CoW Grant Terms and Conditions](https://cloudflare-ipfs.com/ipfs/Qmag8BoNWhBnJ7TFyv2hzWwtoH17Xo7m9468NY6bN8sR6U).

---

<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:** [November 19, 2023, 5:47am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/2 "2023-11-19T05:47:43Z")

</div>

This integration looks to be a promising programmatic framework. I am interested in the views of the other Grant Committee Members.

---

<div class="post-metadata">

**Author:** ![mfw78](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/mfw78/32/1598_2.png) [@mfw78](https://forum.cow.fi/u/mfw78)\
**Post date:** [November 22, 2023, 11:29am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/3 "2023-11-22T11:29:52Z")

</div>

Hi @svanas,  
This looks super interesting! Can you kindly please elaborate on how you intend to integrate the programmatic order framework with `ladder`?

I think what is not clear from the application so far is any dependencies / external infra assumptions etc.

mfw.

---

<div class="post-metadata">

**Author:** ![svanas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/svanas/32/984_2.png) [@svanas](https://forum.cow.fi/u/svanas)\
**Post date:** [November 23, 2023, 1:54pm UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/4 "2023-11-23T13:54:42Z")

</div>

Hello @mfw78. I haven’t really figured out all the tech details, but I can see us using [this repo](https://github.com/itsahedge/go-cowswap) and then have the software ask the user for a private key or a seed phrase, not a (CEX) API key. Who knows, maybe we can improve on the go-cowswap repo while we are consuming it.

---

<div class="post-metadata">

**Author:** ![middleway.eth](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/middleway.eth/32/12_2.png) [@middleway.eth](https://forum.cow.fi/u/middleway.eth)\
**Post date:** [November 24, 2023, 11:14am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/5 "2023-11-24T11:14:27Z")

</div>

@svanas thanks for your proposal, I find it interesting.  
I think that in order to more concretely consider funding this proposal, we’d have to first iron out those missing technical details.

There would probably need to be a milestone for writing and auditing the smart contract code for the proposed ladder orders.  
Then building a user interface for those orders is something CoW Grants can definitely consider funding if it is developed as Open source code.

---

<div class="post-metadata">

**Author:** ![svanas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/svanas/32/984_2.png) [@svanas](https://forum.cow.fi/u/svanas)\
**Post date:** [November 27, 2023, 9:59am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/6 "2023-11-27T09:59:15Z")

</div>

@middleway.eth I did not realize interfacing with the programmatic order framework requires deployment of a smart contract, but I do have some experience writing them. Can someone point me to the POF docs, if any? I would like to get some research started.

The GUI will probably be a console app because that is what Ladder is, but I can develop and release a native app to the Microsoft and Apple App Store, if needed.

Everything I do is open source.

---

<div class="post-metadata">

**Author:** ![mfw78](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/mfw78/32/1598_2.png) [@mfw78](https://forum.cow.fi/u/mfw78)\
**Post date:** [November 28, 2023, 7:05am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/7 "2023-11-28T07:05:25Z")

</div>

You can find exhaustive reference for the programmatic order framework at [https://beta.docs.cow.fi/cow-protocol/reference/contracts/periphery/composable-cow](https://beta.docs.cow.fi/cow-protocol/reference/contracts/periphery/composable-cow).

I think what may be helpful is if you scope out some architectural overview of what it is that you’re trying / wanting to achieve, then we can do a gap analysis from the tech side, and this would allow you to more accurately scope the grant?

---

<div class="post-metadata">

**Author:** ![svanas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/svanas/32/984_2.png) [@svanas](https://forum.cow.fi/u/svanas)\
**Post date:** [November 29, 2023, 9:23am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/8 "2023-11-29T09:23:55Z")

</div>

@netrunner.eth @mfw78 @middleway.eth For some reason unknown to me, the staff keeps flagging my post as spam and then remove it. I am unsure who is in charge, but can you please stop doing this? I am trying to submit a serious proposal.

---

<div class="post-metadata">

**Author:** ![svanas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/svanas/32/984_2.png) [@svanas](https://forum.cow.fi/u/svanas)\
**Post date:** [November 29, 2023, 9:25am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/9 "2023-11-29T09:25:25Z")

</div>

@mfw78 I will be looking at [https://beta.docs.cow.fi/cow-protocol/reference/contracts/periphery/composable-cow](https://beta.docs.cow.fi/cow-protocol/reference/contracts/periphery/composable-cow) soon.

---

<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:** [November 29, 2023, 9:37am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/10 "2023-11-29T09:37:30Z")

</div>

Sorry about that, we are encountering some kind of bug with your post and we’re not able to remove the flag somehow. Maybe repost your proposal as a comment so people can see it.

---

<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:** [November 30, 2023, 3:26am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/11 "2023-11-30T03:26:15Z")

</div>

I suspect the forum software is flagging the post as “spam” when large bodies of text is pasted in.

---

<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:** [December 5, 2023, 8:34am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/12 "2023-12-05T08:34:02Z")

</div>

This time it seems that the flag removal worked, the proposal should be fully visible again.

---

<div class="post-metadata">

**Author:** ![middleway.eth](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/middleway.eth/32/12_2.png) [@middleway.eth](https://forum.cow.fi/u/middleway.eth)\
**Post date:** [January 24, 2024, 2:06pm UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/13 "2024-01-24T14:06:48Z")

</div>

Dear Applicant,

Thank you for submitting your grant proposal. We are eager to review it. Please be aware that due to the recent renewal of our grants program and the holiday season, we are currently experiencing a delay in our review process. This may result in an extended timeline for the grants committee to establish their procedures and provide you with specific feedback. We appreciate your understanding and patience during this time.

---

<div class="post-metadata">

**Author:** ![mfw78](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/mfw78/32/1598_2.png) [@mfw78](https://forum.cow.fi/u/mfw78)\
**Post date:** [February 13, 2025, 9:00am UTC](https://forum.cow.fi/t/grant-application-ladder-trading-via-the-cow-programmatic-order-framework/2021/14 "2025-02-13T09:00:10Z")

</div>


