|
||||||||||
| 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
public class PositionReport
A position report represents a trade
| Field Summary | |
|---|---|
static com.fxcm.entity.ICode |
OBJ_TYPE
|
| Constructor Summary | |
|---|---|
PositionReport()
|
|
| Method Summary | |
|---|---|
boolean |
fill(IMessage aMsg)
Fills object state based on message state. |
String |
getCurrency()
Identifies currency used for price. |
double |
getFXCMPosCommission()
Obtains commission charged for this position |
String |
getFXCMPosID()
Obtains a FXCM Trade id |
String |
getFXCMPosIDRef()
|
double |
getFXCMPosInterest()
Obtains interest accumulated on the position as of this report time |
UTCTimestamp |
getFXCMPosOpenTime()
Obtains creation time |
double |
getFXCMUsedMargin()
Obtains a FXCM Used margin for this trade |
String |
getListID()
|
PositionQty |
getPositionQty()
Obtains the Side and Quantity of this Position Report |
String |
getPosMaintRptID()
Obtains a unique identifier of this position report |
String |
getPosReqID()
Unique identifier for the Request for Positions associated with this report This field should not be provided if the report was sent unsolicited |
IPosReqType |
getPosReqType()
Get the position request type |
String |
getRequestID()
Obtains the Request ID on this object |
double |
getSettlPrice()
Obtains open price of this Trade |
String |
getText()
Free format text string |
int |
getTotalNumPosReports()
Gets the total number of Position Reports being returned. |
com.fxcm.entity.ICode |
getType()
Obtains object type. |
boolean |
isLastRptRequested()
returns true if is last in batch else false |
boolean |
isUnsolicitedIndicator()
true if message is sent as a result of a subscription request or out of band configuration as opposed to a Position Request. |
boolean |
isValid()
Validates object state. |
void |
setCurrency(String aCurrency)
Identifies currency used for price. |
void |
setFXCMPosCommission(double aFXCMPosCommission)
Set the commision charge for this position |
void |
setFXCMPosID(String aFxcmPosID)
Updates FXCM Trade id |
void |
setFXCMPosIDRef(String aFXCMPosIDRef)
|
void |
setFXCMPosInterest(double aFxcmPosInterest)
Updates FXCM PositionInterest |
void |
setFXCMPosOpenTime(UTCTimestamp aFxcmPosTime)
Updates Creation time |
void |
setFXCMUsedMargin(double aFxcmUsedMargin)
Updates FXCM Used margin for this trade |
void |
setLastRptRequested(boolean aLastRptRequested)
set true if last report Requested |
void |
setListID(String aListID)
|
void |
setPositionQty(PositionQty aPositionQty)
Sets the Side and Quantity of this Position Report |
void |
setPosMaintRptID(String aPosMaintRptID)
Updates position report id |
void |
setPosReqID(String aPosReqID)
Set the position request id, unique identifier for the position request. |
void |
setPosReqType(IPosReqType aPosReqType)
Set the position request type |
void |
setSettlPrice(double aSettlPrice)
Updates open price of this Trade |
void |
setText(String aText)
Free format text string |
void |
setTotalNumPosReports(int aTotalNumPosReports)
Sets the total number of Position Reports being returned. |
void |
setUnsolicitedIndicator(boolean aUnsolicitedIndicator)
set the unsolicited indicator,true if message is sent as a result of a subscription request or out of band configuration as opposed to a Position Request. |
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 |
| Field Detail |
|---|
public static final com.fxcm.entity.ICode OBJ_TYPE
| Constructor Detail |
|---|
public PositionReport()
| Method Detail |
|---|
public boolean fill(IMessage aMsg)
ATradeTransportable
fill in interface ITransportablefill in class ATradeTransportableaMsg - message to get new state from
true if new state is OK; false otherwise.public String getCurrency()
public void setCurrency(String aCurrency)
aCurrency - public double getFXCMPosCommission()
public void setFXCMPosCommission(double aFXCMPosCommission)
aFXCMPosCommission - public String getFXCMPosID()
public void setFXCMPosID(String aFxcmPosID)
aFxcmPosID - FXCM Trade idpublic double getFXCMPosInterest()
public void setFXCMPosInterest(double aFxcmPosInterest)
public UTCTimestamp getFXCMPosOpenTime()
public void setFXCMPosOpenTime(UTCTimestamp aFxcmPosTime)
aFxcmPosTime - position creation timepublic double getFXCMUsedMargin()
public void setFXCMUsedMargin(double aFxcmUsedMargin)
aFxcmUsedMargin - for this tradepublic String getListID()
public void setListID(String aListID)
public PositionQty getPositionQty()
public String getPosMaintRptID()
public void setPosMaintRptID(String aPosMaintRptID)
aPosMaintRptID - position report identifierpublic String getPosReqID()
public void setPosReqID(String aPosReqID)
aPosReqID - public IPosReqType getPosReqType()
public void setPosReqType(IPosReqType aPosReqType)
aPosReqType - posreqtypepublic String getFXCMPosIDRef()
public void setFXCMPosIDRef(String aFXCMPosIDRef)
public String getRequestID()
ITransportable
public double getSettlPrice()
public void setSettlPrice(double aSettlPrice)
aSettlPrice - position open pricepublic String getText()
public void setText(String aText)
aText - txtpublic int getTotalNumPosReports()
public void setTotalNumPosReports(int aTotalNumPosReports)
public com.fxcm.entity.ICode getType()
ITransportable
public boolean isLastRptRequested()
public void setLastRptRequested(boolean aLastRptRequested)
aLastRptRequested - public boolean isUnsolicitedIndicator()
public void setUnsolicitedIndicator(boolean aUnsolicitedIndicator)
aUnsolicitedIndicator - public boolean isValid()
ITransportable
true if object state is valid, false otherwise.public void setPositionQty(PositionQty aPositionQty)
aPositionQty -
public IMessage toMessage(String aSID,
String aTradingSessionID,
String aTradingSessionSubID,
String aRequestID,
int aOptions,
IMessageFactory aFactory)
ATradeTransportable
toMessage in interface ITransportabletoMessage in class ATradeTransportableaSID - 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 ATradeTransportable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||