|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fxcm.fix.pretrade.QuoteResponse
public class QuoteResponse
The Quote Response message is used to respond to a Quote message. It is also used to end a negotiation dialog.
| Field Summary | |
|---|---|
static com.fxcm.entity.ICode |
OBJ_TYPE
|
| Constructor Summary | |
|---|---|
QuoteResponse()
|
|
| Method Summary | |
|---|---|
boolean |
fill(IMessage aMsg)
Fills object state based on message. |
String |
getAccount()
Retrieve account id for this transaction. |
double |
getBidPx()
Obtains the bid price/rate |
String |
getClOrdID()
Retrieve order request id. |
String |
getCurrency()
Identifies currency used for price. |
Instrument |
getInstrument()
Obtains snapshot currency. |
long |
getMakingTime()
Return the time when this instance of ITransportable object was made |
double |
getOfferPx()
Obtains the offer price/rate |
double |
getOrderQty()
Obtains the quantity ordered. |
Parties |
getParties()
Obtains a list of parties that are associated with this order. |
String |
getQuoteID()
Obtains the quote id, a unique identifier for quote. |
String |
getQuoteRespID()
Obtains Message reference for Quote Response |
IQuoteRespType |
getQuoteRespType()
Obtains the type of Quote Response. |
String |
getRequestID()
Obtains the Request ID on this object |
String |
getSecondaryClOrdID()
get the custom text |
ISide |
getSide()
Obtains the side of this response |
String |
getTradingSessionID()
Obtains current Trading Session ID. |
String |
getTradingSessionSubID()
Obtains current Trading Session sub ID. |
UTCTimestamp |
getTransactTime()
Obtains time of transaction. |
com.fxcm.entity.ICode |
getType()
Obtains object type. |
boolean |
isValid()
Validates object state. |
void |
setAccount(String account)
Set the account id for this transaction. |
void |
setBidPx(double aBidPx)
Sets the bid price/rate |
void |
setClOrdID(String clOrdID)
Set the order request id, as specified by the client. |
void |
setCurrency(String aCurrency)
Identifies currency used for price. |
void |
setInstrument(Instrument aInstrument)
Updates snapshot currency. |
void |
setOfferPx(double aOfferPx)
Sets the offer price/rate |
void |
setOrderQty(double aOrderQty)
Sets the quantity ordered |
void |
setParties(Parties aParties)
Set submitting Parties. |
void |
setQuoteID(String aQuoteID)
Sets the quote id, a unique identifier for quote. |
void |
setQuoteRespID(String aQuoteRespID)
Sets the Message reference for Quote Response |
void |
setQuoteRespType(IQuoteRespType aQuoteRespType)
Sets the type of Quote Response. |
void |
setSecondaryClOrdID(String mSecondaryClOrdID)
set the custom text |
void |
setSide(ISide aSide)
Sets the side of this response |
void |
setTradingSessionID(String aTradingSessionID)
Updates Trading Session ID. |
void |
setTradingSessionSubID(String aTradingSessionSubID)
Updates Trading Session sub ID. |
void |
setTransactTime(UTCTimestamp aTransactTime)
Updates snapshot time. |
IMessage |
toMessage(String aSID,
IMessageFactory aFactory)
Converts object to message. |
IMessage |
toMessage(String aSID,
String aTradingSessionID,
String aTradingSessionSubID,
String aRequestID,
int aOptions,
IMessageFactory aFactory)
Converts object to IMessage. |
String |
toString()
|
boolean |
update(IMessage aMsg)
Update object state based on message state. |
| 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 QuoteResponse()
| Method Detail |
|---|
public String getAccount()
public void setAccount(String account)
public String getClOrdID()
public void setClOrdID(String clOrdID)
public Instrument getInstrument()
null when not present.public void setInstrument(Instrument aInstrument)
public Parties getParties()
public void setParties(Parties aParties)
public String getSecondaryClOrdID()
public void setSecondaryClOrdID(String mSecondaryClOrdID)
mSecondaryClOrdID - public void setTradingSessionID(String aTradingSessionID)
public void setTradingSessionSubID(String aTradingSessionSubID)
public String getTradingSessionID()
getTradingSessionID in interface ITransportablenull when not present.public String getTradingSessionSubID()
getTradingSessionSubID in interface ITransportablenull when not present.public UTCTimestamp getTransactTime()
nullpublic void setTransactTime(UTCTimestamp aTransactTime)
"00:00:00" by default.
public boolean fill(IMessage aMsg)
ITransportable
fill in interface ITransportableaMsg - message to get new state from
true if succeeded, false otherwise.public String getCurrency()
public void setCurrency(String aCurrency)
aCurrency - public double getOrderQty()
public void setOrderQty(double aOrderQty)
aOrderQty - public double getBidPx()
public void setBidPx(double aBidPx)
aBidPx - public ISide getSide()
SideFactorypublic void setSide(ISide aSide)
aSide - One of the values from SideFactorypublic double getOfferPx()
public void setOfferPx(double aOfferPx)
aOfferPx - public String getQuoteID()
public void setQuoteID(String aQuoteID)
aQuoteID - public String getQuoteRespID()
public void setQuoteRespID(String aQuoteRespID)
aQuoteRespID - public IQuoteRespType getQuoteRespType()
QuoteRespTypeFactorypublic void setQuoteRespType(IQuoteRespType aQuoteRespType)
aQuoteRespType - One of the values from QuoteRespTypeFactorypublic String getRequestID()
ITransportable
getRequestID in interface ITransportablepublic com.fxcm.entity.ICode getType()
ITransportable
getType in interface ITransportablepublic boolean isValid()
ITransportable
isValid in interface ITransportabletrue if object state is valid, false otherwise.
public IMessage toMessage(String aSID,
IMessageFactory aFactory)
toMessage in interface ITransportableaSID - User session IDaFactory - message factory to create message objects
null in case of errors
public IMessage toMessage(String aSID,
String aTradingSessionID,
String aTradingSessionSubID,
String aRequestID,
int aOptions,
IMessageFactory aFactory)
toMessage in interface ITransportableaSID - 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 Objectpublic boolean update(IMessage aMsg)
update in interface ITransportableaMsg - message to get udpated state from
true if new state is OK; false otherwise.public long getMakingTime()
getMakingTime in interface ITransportable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||