com.apama.position
Event Position


This event defines the generic Position object that is published from the Position Trackers. This is designed to be a general purpose Position object, but each customized Position Tracker can choose to publish their own custom event if required.

In the general case, the Position will consist of either a single cumulative quantity and the cash value of that position (e.g. for the Open Position Tracker), or a minimum and maximum of both the quantity and cash value of the position (e.g. the long and short values for the Pending Position Tracker)
Member summary
 integerminQtyPosition

The minimum quantity for the position being tracked.
 floatminCashPosition

The minimum cash value of the position being tracked.
 integermaxQtyPosition

The maximum quantity for the position being tracked.
 floatmaxCashPosition

The maximum cash value of the position being tracked.
 dictionary<string, string>extraParams

Any extra information associated with this Position can be stored in this dictionary. The contents of this dictionary will be specific to the Position Tracker implementation that publishes it.
 
Action summary
 voidsetFullPosition(integer minQty, float minCashPosition, integer maxQty, float maxCashPosition)

This action sets the Position information where separate minimum and maximum values are required.
 voidsetMaxPosition(integer qty, float cashPosition)

This action sets the maximum Position information where separate minimum and maximum values are required.
 voidsetMinPosition(integer qty, float cashPosition)

This action sets the minimum Position information where separate minimum and maximum values are required.
 voidsetPosition(integer qty, float cashPosition)

This action sets the Position information where a single quantity and cash position are required (IE instead of separate min/max values).
 
Member detail

extraParams

dictionary<string, string> extraParams
Any extra information associated with this Position can be stored in this dictionary. The contents of this dictionary will be specific to the Position Tracker implementation that publishes it.

maxCashPosition

float maxCashPosition
The maximum cash value of the position being tracked.

maxQtyPosition

integer maxQtyPosition
The maximum quantity for the position being tracked.

minCashPosition

float minCashPosition
The minimum cash value of the position being tracked.

minQtyPosition

integer minQtyPosition
The minimum quantity for the position being tracked.
Action detail

setFullPosition

void setFullPosition(integer minQty, float minCashPosition, integer maxQty, float maxCashPosition)
This action sets the Position information where separate minimum and maximum values are required.
Parameters:
minQty - The minimum quantity value to set the position to
minCashPosition - The minimum cash position value to set the position to
maxQty - The maximum quantity value to set the position to
maxCashPosition - The maximum cash position value to set the position to
See Also:
com.apama.position.Position#setPosition() - This action allows the user to set the Position with a single call where a minimum/maximum value is not required
com.apama.position.Position#setMinPosition() - This action allows the user to set the just the minimum Position information
com.apama.position.Position#setMaxPosition() - This action allows the user to set the just the maximum Position information

setMaxPosition

void setMaxPosition(integer qty, float cashPosition)
This action sets the maximum Position information where separate minimum and maximum values are required.
Parameters:
qty - The maximum quantity value to set the position to
cashPosition - The maximum cash position value to set the position to
See Also:
com.apama.position.Position#setFullPosition() - This action allows the user to set the Position with a minimum and maximum value
com.apama.position.Position#setMinPosition() - This action allows the user to set the just the minimum Position information

setMinPosition

void setMinPosition(integer qty, float cashPosition)
This action sets the minimum Position information where separate minimum and maximum values are required.
Parameters:
qty - The minimum quantity value to set the position to
cashPosition - The minimum cash position value to set the position to
See Also:
com.apama.position.Position#setFullPosition() - This action allows the user to set the Position with a minimum and maximum value
com.apama.position.Position#setMaxPosition() - This action allows the user to set the just the maximum Position information

setPosition

void setPosition(integer qty, float cashPosition)
This action sets the Position information where a single quantity and cash position are required (IE instead of separate min/max values).
Parameters:
qty - The quantity value to set the position to
cashPosition - The cash position value to set the position to
See Also:
com.apama.position.Position#setFullPosition() - This action allows the user to set the Position with a minimum and a maximum value