Apama Capital Markets Foundation Documentation : Capital Markets Foundation : Analytics : Using the position service framework : Using default position trackers : Configuring default tracker subscriptions
Configuring default tracker subscriptions
When you subscribe to a default tracker implementation, you specify a configuration object, com.apama.position.PositionConfigParams, which is a dictionary of parameter names and values.
Configuration options that are common to all default position trackers are defined by the constants in com.apama.position.tracker.GenericPositionTrackerConstants. Configuration options that are specific to a default position tracker are available in com.apama.position.tracker.xxxTrackerConstants. The com.apama.position.tracker.xxxTrackerConstants events each define the getGenericConsts() action, which gets the set of configuration constants, including the common constants, for the corresponding type of default position tracker.
To modify a default position tracker's configuration, call the addParam() action on the tracker's com.apama.position.PositionConfigParam object.
The set of common configuration parameters includes, but is not limited to:
Configuration Parameter
Description
"SYMBOL_SLICE"
Match against a sequence of symbols that you specify. If you do not specify this slice then all symbols are matched.
"SERVICEID_SLICE"
Match against a sequence of service Ids that you specify. If you do not specify this slice then all service Ids are matched.
"MARKETID_SLICE"
Match against a sequence of market Ids that you specify. If you do not specify this slice then all market Ids are matched.
"EXCHANGEID_SLICE"
Match against a sequence of exchange Ids that you specify. If you do not specify this slice then all exchange Ids are matched.
"TRADERID_SLICE"
Match against a sequence of trader Ids/owner Ids that you specify. If you do not specify this slice then all trader Ids/owner Ids are matched.
"USE_FIREWALL"
Set this parameter to true to enable matching of orders being placed through the CMF risk firewall. This parameter is set to false by default.
"ADD_ORDER_DETAILS"
Set this parameter to true to add information about the last trade to the extraParams dictionary field in the Position event published for this subscription. This parameter is set to false by default.
"SUBSCRIPTION_NAME"
This configuration parameter lets you specify a unique name (within your application) for a subscription. The position tracker then handles that subscription independently of any other subscriptions that have the same configuration. For example, you might want to monitor a trading algorithm's position separately from a firewall rule position. See Implementing independent default position trackers.
"TRACK_SEPARATE_CURRENCIES"
Indicates that you want to also track FX currency positions as separate currencies. For example, a symbol slice of EUR/USD and GBP/USD will also track the positions of EUR, USD, and GBP separately.
"CURRENCY_SEPARATOR"
This configuration parameter lets you specify the currency separator to use when splitting symbols. The default, /, is specified by the "DEFAULT_CURRENCY_SEPARATOR" parameter.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback