Existing Order Block

The Existing Order Block can be used to design algorithms capable of taking control of an existing order. An Existing Order Block works in conjunction with a Single Order Container Block to manage the order using the following process:

  1. When an Existing Order Block takes control of an order, it generates a discrete event message containing the respective order key.
  2. The discrete event message enters the connected Single Order Container.
  3. The container retrieves the order key from the discrete message and takes control of the identified order.

Example Using an Existing Order Block to join the offer

Applying the Existing Order Block functionality to an existing order is referred to as creating an Order Management Algorithm (OMA).The following rules govern the behavior of OMAs:

  • During the application process, the OMA will not disrupt the priority of the working order, but the OMA will have the authority to modify or delete the order after the application.
  • A single algorithm can contain at most one Existing Order Block.
  • An OMA can be applied to the child order of another OMA.

Applying Order Management Algorithms

After saving and deploying an Order Management Algorithm to an algo server, it may be applied to an existing order through the Order Book widget:

Block settings

To change default block settings, double-click the block to open the Block Editor.

Setting Description
Name Name to display beneath the block on the ADL canvas
BodyColor Background color of the block
Description Optional text to explain how the block is used