Package org.marketcetera.trade.pnl
Interface Trade
-
- All Superinterfaces:
HasInstrument
public interface Trade extends HasInstrument
Indicates a trade that took place at a particular point in time for a particular amount and price.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OrderIDgetExecutionId()Get the executionId value.BigDecimalgetPrice()Get the price value.BigDecimalgetQuantity()Get the quantity value.DategetTransactionTime()Get the transactionTime value.voidsetExecutionId(OrderID inExecutionId)Set the executionId value.voidsetPrice(BigDecimal inPrice)Set the price value.voidsetQuantity(BigDecimal inQuantity)Set the quantity value.voidsetTransactionTime(Date inTransactionTime)Set the transactionTime value.-
Methods inherited from interface org.marketcetera.trade.HasInstrument
getInstrument, setInstrument
-
-
-
-
Method Detail
-
getExecutionId
OrderID getExecutionId()
Get the executionId value.- Returns:
- a
org.marketcetera.trade.OrderIDvalue
-
setExecutionId
void setExecutionId(OrderID inExecutionId)
Set the executionId value.- Parameters:
inExecutionId- aorg.marketcetera.trade.OrderIDvalue
-
getPrice
BigDecimal getPrice()
Get the price value.- Returns:
- a
java.math.BigDecimalvalue
-
setPrice
void setPrice(BigDecimal inPrice)
Set the price value.- Parameters:
inPrice- ajava.math.BigDecimalvalue
-
getQuantity
BigDecimal getQuantity()
Get the quantity value.- Returns:
- a
java.math.BigDecimalvalue
-
setQuantity
void setQuantity(BigDecimal inQuantity)
Set the quantity value.- Parameters:
inQuantity- ajava.math.BigDecimalvalue
-
getTransactionTime
Date getTransactionTime()
Get the transactionTime value.- Returns:
- a
java.util.Datevalue
-
setTransactionTime
void setTransactionTime(Date inTransactionTime)
Set the transactionTime value.- Parameters:
inTransactionTime- ajava.util.Datevalue
-
-