Apama 10.3 | Apama Capital Markets Foundation Documentation | Capital Markets Foundation | Finance Smart Blocks for Developing Scenarios | CMF legacy finance support smart blocks | Volume Distributor v2.0
 
Volume Distributor v2.0
The Volume Distributor block splits a given volume into a number of equal parts. It uses the value of the clip percent and num clips to split this volume up into equal parts or clips. Since the clips are of integer sizes, some may be 1 higher than the smallest one. To make this block available to your scenario, you must add the Legacy Finance Support bundle to your project.
Parameters
Parameter
Description
volume
The total volume to trade.
clip percent
Percentage of total volume to trade in each clip, greater than zero, not more than 100.
num clips
Number of clips to distribute the volume over. Has precedence over clip percent if greater than zero.
If the clip percent setting is used, the volume is still distributed evenly over all the periods. The number of periods is determined by the formula round(100 / clip percent).
Operations
Operation
Description
get next
Puts information about the next clip on the output feed. If called after the last clip has already been output, the same data will be output again.
slice
Re-distributes the volume based on the current parameters, and go back to the first clip.
Input feeds
This block has no input feeds.
Output feeds
Feed
Fields
Description
clip
volume
Volume to trade in this clip.
index
Index of this clip. The first is 1.
remaining
Number of clips remaining after this one.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.