This is an example of trading bonds against cash. It covers how this process can be modeled in DAML, and how it can be automated with the Java Application Framework.
In the documentation for this example
- Bond trading model
- This page describes the complexity of exchanging bonds against cash.
- DAML implementation
- This page explains how to model and implement the processes in DAML.
- Automation overview and Automation implementation
- These pages show how parts of the process can be automated.
Building the system
cdto the root directory.
If you have Maven and the DAML SDK installed locally, those will be used with
make. If you do not,
make will use docker container builders instead (requires docker). If you prefer to always use docker, despite having these tools locally, simply export the following in your shell:
This is useful if you are having troubles building due to a version mismatch of one of the tools, or you would just rather not have to install anything extra.
Running the system
Once the application JAR is built, the provided start script will run the Sandbox, Navigator and all needed automation processes.
To run the application:
The script injects trades, and sends progress output to the terminal. It also puts a prompt at the screen bottom which lets you stop the system.
After running, your screen should look like this:
Copyright (c) 2019, Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. SPDX-License-Identifier: Apache-2.0