CashPosition Domain Class
General Description
The cash flow of competitors is documented by the existence of CashPositions.
One CashPosition object holds the relative change in money as well as the account balance.
The CashPosition object is created due to a matched order or a penalty payment.
CashPosition Properties
A CashPosition
domain class possesses the following properties:Long serverId
Competition competition
Person person
BigDecimal change
BigDecimal balance
String description
Date dateCreated
Long transactionID
Boolean latest
Property Descriptions
- serverId: unique identifier of the entity assigned by the server
- competition: associates the CashPosition with a certain competition instance
- person: reference to the person who is affected by the CashPosition
- change: the relative change in cash; if the change value is positive the person gained money, if it is negative the person lost money
- balance: the sum over all CashPositions changes and therefore the account balance of the person on the dateCreated of the CashPosition
- description further informations why the CashPosition was charged, regularly due to a matched order or a penalty payment
- dateCreated: the date on which the CashPosition was created
- transactionID: associate the CashPosition to a certain transaction (trade) if the CashPosition was charged as a result of a order matching
- latest: indicates if this entity is the lates of all CashPositions; if the latest flag is set the balance property can interpreted as the current acount balance of the person