|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fxcm.fix.Instrument
public class Instrument
Instrument - Common component block of FIX messages.
| Field Summary | |
|---|---|
static com.fxcm.entity.ICode |
OBJ_TYPE
Instrument object type |
| Constructor Summary | |
|---|---|
Instrument()
Empty constructor. |
|
Instrument(String aSymbol)
Constructor with given currency pair symbol. |
|
Instrument(String aSymbol,
int aFXCMSymID,
int aFXCMSymPrecision)
Constructor with full set of fields. |
|
Instrument(String aSymbol,
int aFXCMSymID,
int aFXCMSymPrecision,
double aFXCMSymPointSize,
int aFXCMSymSortOrder)
Constructs a new Instrument |
|
| Method Summary | |
|---|---|
boolean |
equals(Object aObj)
Checks if a object is equal to this object. |
boolean |
fill(Instrument aOrig)
Fills out object state. |
String |
getCFICode()
Indicates the type of security using ISO 10962 standard, Classification of Financial Instruments (CFI code) values. |
int |
getContractMultiplier()
Specifies the ratio or multiply factor to convert from "nominal" units (e.g. contracts) to total units (e.g. shares) (e.g. 1.0, 100, 1000, etc). |
int |
getFactor()
Factor by which quantity multiples |
double |
getFXCMCondDistEntryLimit()
|
double |
getFXCMCondDistEntryStop()
|
double |
getFXCMCondDistLimit()
|
double |
getFXCMCondDistStop()
|
double |
getFXCMMaxQuantity()
|
double |
getFXCMMinQuantity()
|
int |
getFXCMProductID()
Product id (1-Forex, 2-Index, 3-Commodity, 4-Treasury, 5-Bullion) |
int |
getFXCMSymID()
Obtains FXCM ID of currency offer. |
double |
getFXCMSymPointSize()
Retrieves the FXCM Sym Point Size |
int |
getFXCMSymPrecision()
Obtains precision of currency offer. |
int |
getFXCMSymSortOrder()
Retrieves the FXCM Sym Sort Order |
String |
getFXCMTradingStatus()
|
int |
getProduct()
Indicates the type of product the security is associated with (high-level category) Valid values: '2' COMMODITY '4' CURRENCY '6' GOVERNMENT '7' INDEX |
String |
getSecurityType()
Indicates type of security. |
String |
getSymbol()
Obtains currency symbol. |
com.fxcm.entity.ICode |
getType()
Returns the type of the entity. |
boolean |
isBullion()
If instrument is bullion |
boolean |
isCommodity()
If instrument is commodity |
boolean |
isForex()
If instrument is forex |
boolean |
isIndex()
If instrument is index |
boolean |
isTreasury()
If instrument is treasury |
boolean |
isValid()
Determines whether entity state is valid. |
String |
priceToString(double aPx)
Converts price number onto string. |
void |
printState(PrintStream aOut)
Deprecated. printState is no longer supported. Use toString instead |
void |
setCFICode(String aCFICode)
Indicates the type of security using ISO 10962 standard, Classification of Financial Instruments (CFI code) values. |
void |
setContractMultiplier(int aContractMultiplier)
Specifies the ratio or multiply factor to convert from "nominal" units (e.g. contracts) to total units (e.g. shares) (e.g. 1.0, 100, 1000, etc). |
void |
setFactor(int aFactor)
Factor by which quantity multiples |
void |
setFXCMCondDistEntryLimit(double aFXCMCondDistEntryLimit)
|
void |
setFXCMCondDistEntryStop(double aFXCMCondDistEntryStop)
|
void |
setFXCMCondDistLimit(double aFXCMCondDistLimit)
|
void |
setFXCMCondDistStop(double aFXCMCondDistStop)
|
void |
setFXCMMaxQuantity(double aFXCMMaxQuantity)
|
void |
setFXCMMinQuantity(double aFXCMMinQuantity)
|
void |
setFXCMProductID(int aFXCMProductID)
Product id (1-Forex, 2-Index, 3-Commodity, 4-Treasury, 5-Bullion) |
void |
setFXCMSymID(int aFXCMSymID)
Updates FXCM ID of currency offer. |
void |
setFXCMSymPointSize(double aFXCMSymPointSize)
Sets the FXCM Sym Point Size |
void |
setFXCMSymPrecision(int aFXCMSymPrecision)
Updates Precision of cPrices (pip size) |
void |
setFXCMSymSortOrder(int aFXCMSymSortOrder)
Sets the FXCM Sym Sort Order |
void |
setFXCMTradingStatus(String aFXCMTradingStatus)
|
void |
setProduct(int aProduct)
Indicates the type of product the security is associated with (high-level category) Valid values: '2' COMMODITY '4' CURRENCY '6' GOVERNMENT '7' INDEX |
void |
setSecurityType(String aSecurityType)
Indicates type of security. |
void |
setSymbol(String aSymbol)
Updates currency symbol. |
String |
toString()
String representation of the class |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final com.fxcm.entity.ICode OBJ_TYPE
| Constructor Detail |
|---|
public Instrument()
public Instrument(String aSymbol)
aSymbol - Symbol is defined in "EBS" (Electronic Banking System) format: "CCY1/CCY2"
public Instrument(String aSymbol,
int aFXCMSymID,
int aFXCMSymPrecision)
aSymbol - Symbol is defined in "EBS" (Electronic Banking System) format: "CCY1/CCY2"aFXCMSymID - FXCM ID of currency offeraFXCMSymPrecision - Number of digits after decimal point
public Instrument(String aSymbol,
int aFXCMSymID,
int aFXCMSymPrecision,
double aFXCMSymPointSize,
int aFXCMSymSortOrder)
aSymbol - symbolaFXCMSymID - symidaFXCMSymPrecision - symprecisionaFXCMSymPointSize - sympointsizeaFXCMSymSortOrder - symsortorder| Method Detail |
|---|
public boolean equals(Object aObj)
equals in class ObjectaObj - Code object to compare.
true if codes are the same; false otherwise.public boolean fill(Instrument aOrig)
aOrig - Object to copy state from.
true if state is updated; false otherwise.public String getCFICode()
public void setCFICode(String aCFICode)
aCFICode - CFICodepublic int getContractMultiplier()
public void setContractMultiplier(int aContractMultiplier)
aContractMultiplier - multiplierpublic int getFactor()
public void setFactor(int aFactor)
aFactor - factorpublic double getFXCMCondDistEntryLimit()
public void setFXCMCondDistEntryLimit(double aFXCMCondDistEntryLimit)
public double getFXCMCondDistEntryStop()
public void setFXCMCondDistEntryStop(double aFXCMCondDistEntryStop)
public double getFXCMCondDistLimit()
public void setFXCMCondDistLimit(double aFXCMCondDistLimit)
public double getFXCMCondDistStop()
public void setFXCMCondDistStop(double aFXCMCondDistStop)
public double getFXCMMaxQuantity()
public void setFXCMMaxQuantity(double aFXCMMaxQuantity)
public double getFXCMMinQuantity()
public void setFXCMMinQuantity(double aFXCMMinQuantity)
public int getFXCMProductID()
public void setFXCMProductID(int aFXCMProductID)
aFXCMProductID - FXCMProductIDpublic int getFXCMSymID()
public void setFXCMSymID(int aFXCMSymID)
aFXCMSymID - Offer IDpublic double getFXCMSymPointSize()
public void setFXCMSymPointSize(double aFXCMSymPointSize)
aFXCMSymPointSize - pointsize
public int getFXCMSymPrecision()
throws NotDefinedException
NotDefinedException - when field not specifiedpublic void setFXCMSymPrecision(int aFXCMSymPrecision)
aFXCMSymPrecision - Precision of cPricespublic int getFXCMSymSortOrder()
public void setFXCMSymSortOrder(int aFXCMSymSortOrder)
aFXCMSymSortOrder - symsortorderpublic String getFXCMTradingStatus()
public void setFXCMTradingStatus(String aFXCMTradingStatus)
public int getProduct()
Valid values: '2' COMMODITY '4' CURRENCY '6' GOVERNMENT '7' INDEX
public void setProduct(int aProduct)
Valid values: '2' COMMODITY '4' CURRENCY '6' GOVERNMENT '7' INDEX
aProduct - productpublic String getSecurityType()
public void setSecurityType(String aSecurityType)
aSecurityType - security type
public String getSymbol()
throws NotDefinedException
NotDefinedException - when field not specifiedpublic void setSymbol(String aSymbol)
aSymbol - Symbol is defined in "EBS" (Electronic Banking System) format: "CCY1/CCY2"public com.fxcm.entity.ICode getType()
public boolean isForex()
public boolean isIndex()
public boolean isCommodity()
public boolean isTreasury()
public boolean isBullion()
public boolean isValid()
true alwaispublic String priceToString(double aPx)
aPx - price to proceed.
public void printState(PrintStream aOut)
aOut - Stream to print out.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||