# Interest Rate Swap Execution

**URL:** <https://forum.canton.network/t/interest-rate-swap-execution/472>\
**Category:** App Development\
**Created:** [May 14, 2020, 7:12pm UTC](https://forum.canton.network/t/interest-rate-swap-execution/472 "2020-05-14T19:12:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olusegun](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/olusegun/32/873_2.png) [@Olusegun](https://forum.canton.network/u/Olusegun)\
**Post date:** [May 14, 2020, 7:12pm UTC](https://forum.canton.network/t/interest-rate-swap-execution/472/1 "2020-05-14T19:12:42Z")

</div>

I am implementing this

> **[digital-asset/ex-cdm-swaps](https://github.com/digital-asset/ex-cdm-swaps)**
>
> Contribute to digital-asset/ex-cdm-swaps development by creating an account on GitHub.

for an Msc in Fin. Engineering.

Can I use the templates to create a new contract of an IRS with one year duration quarterly floating cashflows on the libor and 6 month for the fixed leg?

Can this be done from the web interface?

---

<div class="post-metadata">

**Author:** ![georg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/georg/32/368_2.png) [@georg](https://forum.canton.network/u/georg)\
**Post date:** [May 15, 2020, 5:43am UTC](https://forum.canton.network/t/interest-rate-swap-execution/472/2 "2020-05-15T05:43:01Z")

</div>

Any arbitrary IRS can be represented within the CDM, however, the schemas are quite complex. You can find examples in the `examples/NewTrade` directory in the repo.

While in theory possible for these contracts to be created from a UI, the schema complexity makes this incredibly cumbersome and error-prone. CDM is a data standard meant to be produced and processes by code, not by humans. What you could do, is create a helper contract that does the heavy-lifting of creating a full CDM swap based on a few inputs you provide it.

---

<div class="post-metadata">

**Author:** ![Olusegun](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/olusegun/32/873_2.png) [@Olusegun](https://forum.canton.network/u/Olusegun)\
**Post date:** [May 15, 2020, 7:10pm UTC](https://forum.canton.network/t/interest-rate-swap-execution/472/3 "2020-05-15T19:10:41Z")

</div>

Thank you Georg,

Yes I will at the new trade directory.

What about the helper contract?

---

<div class="post-metadata">

**Author:** ![Olusegun](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/olusegun/32/873_2.png) [@Olusegun](https://forum.canton.network/u/Olusegun)\
**Post date:** [May 17, 2020, 7:12pm UTC](https://forum.canton.network/t/interest-rate-swap-execution/472/4 "2020-05-17T19:12:41Z")

</div>

Hello all,

Good evening.

‘’’

- Start the automation by running:

```haskell
(cd app/; sbt "runMain com.digitalasset.app.Bots localhost 6865 {includeDemo}")

```

Set `includeDemo` to `true` or `false` depending on whether the application is run in [demo](https://github.com/digital-asset/ex-cdm-swaps/blob/ba8e1f0dec418b30a5b5c05c0c46c4111b365c92/docs/demo.md) mode.

Please how do I set IncludeDemo to true?

is it  
‘’’  
{ includeDemo=true}

‘’’

?

Thanks.

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [May 17, 2020, 7:16pm UTC](https://forum.canton.network/t/interest-rate-swap-execution/472/5 "2020-05-17T19:16:32Z")

</div>

Hi @Olusegun, please start new threads for separate questions. Thanks!

---

<div class="post-metadata">

**Author:** ![Olusegun](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/olusegun/32/873_2.png) [@Olusegun](https://forum.canton.network/u/Olusegun)\
**Post date:** [May 17, 2020, 7:17pm UTC](https://forum.canton.network/t/interest-rate-swap-execution/472/6 "2020-05-17T19:17:46Z")

</div>

Hello Moritz,

But it is still part of the IRS Execution?

I will appreciate an assisance here, Attempring to set the automation and to initMarket

Thaks

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [May 17, 2020, 7:30pm UTC](https://forum.canton.network/t/interest-rate-swap-execution/472/7 "2020-05-17T19:30:32Z")

</div>

Moved to a new thread, at [IRS Swap Demo Mode](https://discuss.daml.com/t/irs-swap-demo-mode/481/2). Thanks @Olusegun!
