com.lmax.api.position
Interface PositionEvent


public interface PositionEvent

Represents a change to a position held by the account.


Method Summary
 long getAccountId()
          Returns the account ID that the position belongs to.
 FixedPointNumber getCumulativeCost()
          Returns the cumulative cost of the position.
 long getInstrumentId()
          Returns the instrument ID that the position pertains to.
 FixedPointNumber getLongUnfilledCost()
          Returns the long unfilled cost.
 FixedPointNumber getOpenCost()
          Returns the open cost of the position.
 FixedPointNumber getOpenQuantity()
          Returns the open quantity of the position.
 FixedPointNumber getShortUnfilledCost()
          Returns the short unfilled cost.
 FixedPointNumber getValuation()
          Returns the valuation of the position.
 

Method Detail

getAccountId

long getAccountId()
Returns the account ID that the position belongs to.

Returns:
the account ID that the position belongs to.

getInstrumentId

long getInstrumentId()
Returns the instrument ID that the position pertains to.

Returns:
the instrument ID that the position pertains to.

getValuation

FixedPointNumber getValuation()
Returns the valuation of the position.

Returns:
the valuation of the position.

getShortUnfilledCost

FixedPointNumber getShortUnfilledCost()
Returns the short unfilled cost.

Returns:
the short unfilled cost.

getLongUnfilledCost

FixedPointNumber getLongUnfilledCost()
Returns the long unfilled cost.

Returns:
the long unfilled cost.

getOpenQuantity

FixedPointNumber getOpenQuantity()
Returns the open quantity of the position.

Returns:
the open quantity of the position.

getCumulativeCost

FixedPointNumber getCumulativeCost()
Returns the cumulative cost of the position.

Returns:
the cumulative cost of the position.

getOpenCost

FixedPointNumber getOpenCost()
Returns the open cost of the position.

Returns:
the open cost of the position.