|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fxcm.external.api.util.MessageGenerator
public class MessageGenerator
| Constructor Summary | |
|---|---|
MessageGenerator()
|
|
| Method Summary | |
|---|---|
static OrderSingle |
generateAcceptOrder(String aQuoteID,
String aCustomText)
Generates an Accept OrderSingle in response to a Requote |
static OrderSingle |
generateCloseMarketOrder(String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
Generate a close order at market price |
static OrderSingle |
generateCloseOrder(double aPrice,
String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
Generate close order |
static OrderSingle |
generateCloseOrder(double aPrice,
String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aAtMarketPoints)
Generate close order at market points |
static OrderSingle |
generateCloseOrder(String aQuoteID,
double aPrice,
String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
Generate close order |
static OrderSingle |
generateCloseOrder(String aQuoteID,
double aPrice,
String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aAtMarketPoints)
Generate close order at market points |
static OrderSingle |
generateMarketOrder(String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
Generates a true market order. |
static OrderSingle |
generateOpenOrder(double aPrice,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
Generate Open order |
static OrderSingle |
generateOpenOrder(double aPrice,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aAtMarketPoints)
Generate Open order at market points |
static OrderSingle |
generateOpenOrder(String aQuoteID,
double aPrice,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
Generate Open order |
static OrderSingle |
generateOpenOrder(String aQuoteID,
double aPrice,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aAtMarketPoints)
Generate Open order at market points |
static OrderCancelRequest |
generateOrderCancelRequest(String aClCustomText,
String aOrderID,
ISide aSide,
String aAccount)
Generate request to cancel a pending order. |
static OrderCancelReplaceRequest |
generateOrderReplaceRequest(String aClCustomText,
String aOrderID,
ISide aSide,
IOrdType aOrdType,
double aPrice,
int aTrailing,
String aAccount)
Generate an update to a pending order at market points |
static OrderCancelReplaceRequest |
generateOrderReplaceRequest(String aClCustomText,
String aOrderID,
ISide aSide,
IOrdType aOrdType,
double aPrice,
String aAccount)
Generate an update to a pendnig order |
static QuoteResponse |
generatePassResponse(String aQuoteID)
Generates a delete response for a requote or request for quote |
static OrderSingle |
generateStopLimitClose(double aPrice,
String aPosID,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
Place a stop or a limit on an existing position or order. |
static OrderSingle |
generateStopLimitClose(double aPrice,
String aPosID,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aTrailing)
Place a stop or a limit on an existing position or order. |
static OrderSingle |
generateStopLimitEntry(double aPrice,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
Place a stop or a limit to enter the market. |
static OrderSingle |
generateStopLimitEntry(double aPrice,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aTrailing)
Place a stop or a limit to enter the market. |
static OrderSingle |
generateStopLimitEntry(String aQuoteID,
double aPrice,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
Place a stop or a limit to enter the market. |
static OrderSingle |
generateStopLimitEntry(String aQuoteID,
double aPrice,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aTrailing)
Place a stop or a limit to enter the market. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageGenerator()
| Method Detail |
|---|
public static OrderSingle generateAcceptOrder(String aQuoteID,
String aCustomText)
aQuoteID - quoteidaCustomText - txt
public static OrderSingle generateCloseMarketOrder(String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
aOpenPosID - pos idaAccount - acctaAmount - amountaSide - sideaCurrency - ccyaClCustomText - txt
public static OrderSingle generateCloseOrder(String aQuoteID,
double aPrice,
String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
aQuoteID - quoteidaPrice - priceaOpenPosID - posidaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txt
public static OrderSingle generateCloseOrder(double aPrice,
String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
aPrice - priceaOpenPosID - posidaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txt
public static OrderSingle generateCloseOrder(String aQuoteID,
double aPrice,
String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aAtMarketPoints)
aQuoteID - quoteidaPrice - priceaOpenPosID - posidaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txtaAtMarketPoints - at mkt pts
public static OrderSingle generateCloseOrder(double aPrice,
String aOpenPosID,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aAtMarketPoints)
aPrice - priceaOpenPosID - posidaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txtaAtMarketPoints - at mkt pts
public static OrderSingle generateMarketOrder(String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
aAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txt
public static OrderSingle generateOpenOrder(String aQuoteID,
double aPrice,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
aQuoteID - quoteidaPrice - priceaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txt
public static OrderSingle generateOpenOrder(double aPrice,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
aPrice - priceaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txt
public static OrderSingle generateOpenOrder(String aQuoteID,
double aPrice,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aAtMarketPoints)
aQuoteID - quoteidaPrice - priceaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txtaAtMarketPoints - at mkt pts
public static OrderSingle generateOpenOrder(double aPrice,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aAtMarketPoints)
aPrice - priceaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txtaAtMarketPoints - at mkt pts
public static OrderCancelRequest generateOrderCancelRequest(String aClCustomText,
String aOrderID,
ISide aSide,
String aAccount)
aClCustomText - txtaOrderID - orderidaSide - sideaAccount - account
public static OrderCancelReplaceRequest generateOrderReplaceRequest(String aClCustomText,
String aOrderID,
ISide aSide,
IOrdType aOrdType,
double aPrice,
String aAccount)
aClCustomText - txtaOrderID - orderidaSide - sideaOrdType - ordtypeaPrice - priceaAccount - account
public static OrderCancelReplaceRequest generateOrderReplaceRequest(String aClCustomText,
String aOrderID,
ISide aSide,
IOrdType aOrdType,
double aPrice,
int aTrailing,
String aAccount)
aClCustomText - txtaOrderID - orderidaSide - sideaOrdType - ordtypeaPrice - priceaTrailing - trailing distanceaAccount - account
public static QuoteResponse generatePassResponse(String aQuoteID)
aQuoteID - quoteid
public static OrderSingle generateStopLimitClose(double aPrice,
String aPosID,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
aPrice - priceaPosID - posidaOrderType - ordertypeaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txt
public static OrderSingle generateStopLimitClose(double aPrice,
String aPosID,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aTrailing)
aPrice - priceaPosID - posidaOrderType - ord typeaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txtaTrailing - trailing distance
public static OrderSingle generateStopLimitEntry(String aQuoteID,
double aPrice,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
aQuoteID - quoteidaPrice - priceaOrderType - ord typeaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txt
public static OrderSingle generateStopLimitEntry(double aPrice,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText)
aPrice - priceaOrderType - ord typeaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txt
public static OrderSingle generateStopLimitEntry(String aQuoteID,
double aPrice,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aTrailing)
aQuoteID - quoteidaPrice - priceaOrderType - ord typeaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txtaTrailing - trailing distance
public static OrderSingle generateStopLimitEntry(double aPrice,
IOrdType aOrderType,
String aAccount,
double aAmount,
ISide aSide,
String aCurrency,
String aClCustomText,
int aTrailing)
aPrice - priceaOrderType - ord typeaAccount - acctaAmount - amtaSide - sideaCurrency - ccyaClCustomText - txtaTrailing - trailing distance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||