|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fxcm.fix.ATradeTransportable
com.fxcm.fix.posttrade.PositionReport
com.fxcm.fix.posttrade.ClosedPositionReport
public class ClosedPositionReport
| Field Summary |
|---|
| Fields inherited from class com.fxcm.fix.posttrade.PositionReport |
|---|
OBJ_TYPE |
| Constructor Summary | |
|---|---|
ClosedPositionReport()
|
|
| Method Summary | |
|---|---|
boolean |
fill(IMessage aMsg)
Fills object state based on message state. |
String |
getFXCMCloseClOrdID()
Sets the close client order id |
String |
getFXCMCloseOrderID()
Obtains the close client order id |
String |
getFXCMCloseSecondaryClOrdID()
Obtains close secondary client order id. |
double |
getFXCMCloseSettlPrice()
Obtains the closing price |
double |
getFXCMPosClosePNL()
Obtains the Profit or Loss calculated on the position |
UTCTimestamp |
getFXCMPosCloseTime()
Obtains the time at which the position was closed |
boolean |
isValid()
Validates object state. |
void |
reset()
Reset object state to default values. |
void |
setFXCMCloseClOrdID(String aFxcmCloseClOrdID)
Sets the closing client order id |
void |
setFXCMCloseOrderID(String aFxcmCloseOrderID)
Sets the fxcm close order id. |
void |
setFXCMCloseSecondaryClOrdID(String aFxcmCloseSecondaryClOrdID)
Sets the fxcm closing secondary client order id |
void |
setFXCMCloseSettlPrice(double aFxcmCloseSettlPrice)
Sets the closing price of this position |
void |
setFXCMPosClosePNL(double aFxcmPosClosePNL)
Sets the Profit or Loss applied to the trade |
void |
setFXCMPosCloseTime(UTCTimestamp aFxcmPosCloseTime)
Sets the time at which this position was closed |
IMessage |
toMessage(String aSID,
String aTradingSessionID,
String aTradingSessionSubID,
String aRequestID,
int aOptions,
IMessageFactory aFactory)
Converts object to IMessage. |
String |
toString()
|
| Methods inherited from class com.fxcm.fix.ATradeTransportable |
|---|
fill, getAccount, getClOrdID, getInstrument, getMakingTime, getOrderID, getParties, getSecondaryClOrdID, getTradingSessionID, getTradingSessionSubID, getTransactTime, setAccount, setClOrdID, setInstrument, setOrderID, setParties, setSecondaryClOrdID, setTradingSessionID, setTradingSessionSubID, setTransactTime, toMessage, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClosedPositionReport()
| Method Detail |
|---|
public boolean fill(IMessage aMsg)
ATradeTransportable
fill in interface ITransportablefill in class PositionReportaMsg - message to get new state from
true if new state is OK; false otherwise.public String getFXCMCloseClOrdID()
public String getFXCMCloseOrderID()
public String getFXCMCloseSecondaryClOrdID()
public double getFXCMCloseSettlPrice()
public double getFXCMPosClosePNL()
public UTCTimestamp getFXCMPosCloseTime()
public boolean isValid()
ITransportable
isValid in interface ITransportableisValid in class PositionReporttrue if object state is valid, false otherwise.public void reset()
PositionReport
public void setFXCMCloseClOrdID(String aFxcmCloseClOrdID)
public void setFXCMCloseOrderID(String aFxcmCloseOrderID)
aFxcmCloseOrderID - closing order idpublic void setFXCMCloseSecondaryClOrdID(String aFxcmCloseSecondaryClOrdID)
aFxcmCloseSecondaryClOrdID - Custom text of closing orderpublic void setFXCMCloseSettlPrice(double aFxcmCloseSettlPrice)
aFxcmCloseSettlPrice - ID of original requestpublic void setFXCMPosClosePNL(double aFxcmPosClosePNL)
aFxcmPosClosePNL - Profit or Loss amountpublic void setFXCMPosCloseTime(UTCTimestamp aFxcmPosCloseTime)
aFxcmPosCloseTime - Close time of position
public IMessage toMessage(String aSID,
String aTradingSessionID,
String aTradingSessionSubID,
String aRequestID,
int aOptions,
IMessageFactory aFactory)
ATradeTransportable
toMessage in interface ITransportabletoMessage in class PositionReportaSID - user session IDaTradingSessionID - Trading Session ID, to alternate a value from object stateaTradingSessionSubID - Trading Session Sub ID, to alternate a value from object stateaRequestID - Request ID, to alternate a value from object stateaOptions - Set of options for message creation, reservedaFactory - message factory that is in use to process
null if creation failspublic String toString()
toString in class PositionReport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||