|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGateway
Interface to the FXCM Platform
| Method Summary | |
|---|---|
ISessionStatus |
getCurrentStatus()
Gets last sent ISessionStatus message |
String |
getSessionID()
|
TradingSessionDesc |
getTradingSession()
Returns connected TradingSession |
TradingSessionDesc[] |
getTradingSessions(FXCMLoginProperties aProps)
Obtains list of trading session that is available to login. |
int |
getUserKind()
Gets the UserKind |
boolean |
isConnected()
gives status of active connection to fxcm server. |
void |
login(FXCMLoginProperties aLoginProperties)
login to the FXCM server, exception are raised when a problem occurs during login. |
void |
logout()
logout of the FXCM server. |
void |
openSession(TradingSessionDesc aTradingSessionDesc)
Open a sesssion with the supplied TradingSession, only 1 session can be opened. |
void |
openSession(TradingSessionDesc aTradingSessionDesc,
Properties aProperties)
Open a sesssion with the supplied TradingSession, only 1 session can be opened. |
void |
registerGenericMessageListener(IGenericMessageListener aListener)
register as a aListener of generic messages: quotes,orders,excecutions |
void |
registerStatusMessageListener(IStatusMessageListener aListener)
register as a aListener of connection status events |
void |
relogin()
logout, then log back in. |
void |
removeGenericMessageListener(IGenericMessageListener aListener)
stops the supplied aListener from receiving future notifications. |
void |
removeStatusMessageListener(IStatusMessageListener aListener)
stops the supplied aListener from receiving future notifications. |
String |
requestAccountByName(String aAccountName)
Get accounts by account name |
String |
requestAccounts()
request for accounts associated with this login |
String |
requestAccounts(long aFXCMAcctID)
Get accounts by acctid |
String |
requestAccounts(String aLoginID)
request for accounts associated with supplied login id |
String |
requestClosedPositions()
request for the last 30 closed positions |
String |
requestClosedPositions(int aFXCMMaxNoResults,
UTCDate aFXCMStartDate,
UTCTimeOnly aFXCMStartTime,
UTCDate aFXCMEndDate,
UTCTimeOnly aFXCMEndTime)
Request historical snapshot for closed positions in the range supplied, max allowed is 300 |
String |
requestClosedPositions(long aFXCMAcctID)
request closed positions by acctid |
String |
requestClosedPositions(String aLoginID)
request for the last 30 closed positions with supplied login id |
String |
requestOpenOrders()
make a request for open orders on all accounts |
String |
requestOpenOrders(long aFXCMAcctID)
request open orders by acctid |
String |
requestOpenOrders(String aLoginID)
request for open orders on all accounts with supplied login id |
String |
requestOpenPositions()
request for open positions on all accounts |
String |
requestOpenPositions(long aFXCMAcctID)
request open positions by acctid |
String |
requestOpenPositions(String aLoginID)
request for open positions on all accounts with supplied login id |
String |
requestOrderStatus(String aOrderID,
OrdStatusRequestType aOrdStatusRequestType,
String aAccount)
make a request for the last order message sent for the given order id based on the request type |
String |
requestTradingSessionStatus()
You must call this after login as part of handshake process otherwise you will not receive messages |
String |
sendMessage(ITransportable aMessage)
Send an aMessage to the FXCM server, an exception is raised if there is a problem sending the aMessage. |
| Method Detail |
|---|
ISessionStatus getCurrentStatus()
throws SessionNotEstablishedException
SessionNotEstablishedException
String getSessionID()
throws SessionNotEstablishedException
SessionNotEstablishedException
TradingSessionDesc getTradingSession()
throws SessionNotEstablishedException
SessionNotEstablishedException
TradingSessionDesc[] getTradingSessions(FXCMLoginProperties aProps)
throws Exception
aProps -
Exceptionint getUserKind()
com.fxcm.fix.IFixDefs.FXCM_ACCT_TYPE_CUSTOMER,
com.fxcm.fix.IFixDefs.FXCM_ACCT_TYPE_DEALER,
com.fxcm.fix.IFixDefs.FXCM_ACCT_TYPE_TRADERboolean isConnected()
void login(FXCMLoginProperties aLoginProperties)
throws Exception
aLoginProperties -
Exceptionvoid logout()
void openSession(TradingSessionDesc aTradingSessionDesc)
throws Exception
aTradingSessionDesc -
Exception
void openSession(TradingSessionDesc aTradingSessionDesc,
Properties aProperties)
throws Exception
aTradingSessionDesc - aProperties -
Exceptionvoid registerGenericMessageListener(IGenericMessageListener aListener)
aListener - void registerStatusMessageListener(IStatusMessageListener aListener)
aListener -
void relogin()
throws Exception
Exceptionvoid removeGenericMessageListener(IGenericMessageListener aListener)
aListener - void removeStatusMessageListener(IStatusMessageListener aListener)
aListener - String requestAccounts()
String requestAccounts(String aLoginID)
aLoginID -
String requestAccounts(long aFXCMAcctID)
aFXCMAcctID -
String requestAccountByName(String aAccountName)
aAccountName -
String requestClosedPositions()
String requestClosedPositions(String aLoginID)
aLoginID -
String requestClosedPositions(long aFXCMAcctID)
aFXCMAcctID -
String requestClosedPositions(int aFXCMMaxNoResults,
UTCDate aFXCMStartDate,
UTCTimeOnly aFXCMStartTime,
UTCDate aFXCMEndDate,
UTCTimeOnly aFXCMEndTime)
aFXCMMaxNoResults - aFXCMStartDate - aFXCMStartTime - aFXCMEndDate - aFXCMEndTime -
String requestOpenOrders()
String requestOpenOrders(String aLoginID)
aLoginID -
String requestOpenOrders(long aFXCMAcctID)
aFXCMAcctID -
String requestOpenPositions()
String requestOpenPositions(String aLoginID)
aLoginID -
String requestOpenPositions(long aFXCMAcctID)
aFXCMAcctID -
String requestOrderStatus(String aOrderID,
OrdStatusRequestType aOrdStatusRequestType,
String aAccount)
aOrderID - aOrdStatusRequestType - aAccount -
String requestTradingSessionStatus()
String sendMessage(ITransportable aMessage)
throws Exception
aMessage -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||