|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fxcm.fix.Instrument
com.fxcm.fix.TradingSecurity
public class TradingSecurity
Instrument - Common component block of FIX messages.
| Field Summary |
|---|
| Fields inherited from class com.fxcm.fix.Instrument |
|---|
OBJ_TYPE |
| Constructor Summary | |
|---|---|
TradingSecurity()
Empty constructor. |
|
TradingSecurity(String aSymbol,
int aFXCMSymID,
int aFXCMSymPrecision,
double aFXCMSymPointSize,
int aFXCMSymSortOrder,
String aCurrency,
double aRoundLot)
Constructs a new TradingSecurity |
|
TradingSecurity(String aSymbol,
int aFXCMSymID,
int aFXCMSymPrecision,
String aCurrency,
double aRoundLot)
Constructor with full set of fields. |
|
| Method Summary | |
|---|---|
boolean |
fill(Instrument aOrig)
Fills out object state. |
String |
getCurrency()
Obtains position currency of offer. |
String |
getFXCMSubscriptionStatus()
|
double |
getFXCMSymInterestBuy()
interest rate on buy side |
double |
getFXCMSymInterestSell()
interest rate on sell side |
double |
getRoundLot()
Obtains contract size of offer. |
void |
setCurrency(String aCurrency)
Updates position currency of offer. |
void |
setFXCMSubscriptionStatus(String aFXCMSubscriptionStatus)
|
void |
setFXCMSymInterestBuy(double aFXCMSymInterestBuy)
interest rate on buy side |
void |
setFXCMSymInterestSell(double aFXCMSymInterestSell)
interest on sell side |
void |
setRoundLot(double aRoundLot)
Updates contract size of offer. |
String |
toString()
String representation of the class |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TradingSecurity()
public TradingSecurity(String aSymbol,
int aFXCMSymID,
int aFXCMSymPrecision,
String aCurrency,
double aRoundLot)
aSymbol - Symbol is defined in "EBS" (Electronic Banking System) format: "CCY1/CCY2"aFXCMSymID - FXCM ID of currency offeraFXCMSymPrecision - Number of digits after decimal pointaCurrency - Position CurrencyaRoundLot - Position Currency
public TradingSecurity(String aSymbol,
int aFXCMSymID,
int aFXCMSymPrecision,
double aFXCMSymPointSize,
int aFXCMSymSortOrder,
String aCurrency,
double aRoundLot)
aSymbol - aFXCMSymID - aFXCMSymPrecision - aFXCMSymPointSize - aFXCMSymSortOrder - aCurrency - aRoundLot - | Method Detail |
|---|
public String getFXCMSubscriptionStatus()
public void setFXCMSubscriptionStatus(String aFXCMSubscriptionStatus)
public String getCurrency()
throws NotDefinedException
NotDefinedException - when field not specified
public double getRoundLot()
throws NotDefinedException
NotDefinedException - when field not specifiedpublic void setCurrency(String aCurrency)
aCurrency - 3 letters currency symbol like "EUR"public void setRoundLot(double aRoundLot)
aRoundLot - The trading lot size. Currently 100,000 alwayspublic double getFXCMSymInterestBuy()
public void setFXCMSymInterestBuy(double aFXCMSymInterestBuy)
aFXCMSymInterestBuy - public double getFXCMSymInterestSell()
public void setFXCMSymInterestSell(double aFXCMSymInterestSell)
aFXCMSymInterestSell - public boolean fill(Instrument aOrig)
fill in class InstrumentaOrig - Object to copy state from.
true if state is updated; false otherwise.public String toString()
toString in class Instrument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||