Class ClientAccountManager
- java.lang.Object
-
- com.caplin.motif.fx.ret.fxtrading.extension.accountmanager.ClientAccountManager
-
- All Implemented Interfaces:
FxTradingAccountManager
public class ClientAccountManager extends java.lang.Object implements FxTradingAccountManager
AnFxTradingAccountManager
implementation which always returns the provided account.
-
-
Constructor Summary
Constructors Constructor Description ClientAccountManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.caplin.motif.fx.trading.Account
getAccount(com.caplin.motif.UserTrade trade, com.caplin.motif.fx.trading.Account accountFromClient, java.lang.String retClientName, com.caplin.ret.trapi.fx.execution.AccountService accountService)
Returns theAccount
for a given RET client.com.caplin.motif.fx.trading.Account
getAccount(com.caplin.motif.UserTrade trade, java.lang.String legId, com.caplin.motif.fx.trading.Account accountFromClient, java.lang.String retClientName, com.caplin.ret.trapi.fx.execution.AccountService accountService)
Returns theAccount
for a given RET client.
-
-
-
Method Detail
-
getAccount
public com.caplin.motif.fx.trading.Account getAccount(com.caplin.motif.UserTrade trade, com.caplin.motif.fx.trading.Account accountFromClient, java.lang.String retClientName, com.caplin.ret.trapi.fx.execution.AccountService accountService) throws java.lang.Exception
Description copied from interface:FxTradingAccountManager
Returns the
Account
for a given RET client.Use this method to determine which account
Account
should be returned.- Specified by:
getAccount
in interfaceFxTradingAccountManager
- Throws:
java.lang.Exception
-
getAccount
public com.caplin.motif.fx.trading.Account getAccount(com.caplin.motif.UserTrade trade, java.lang.String legId, com.caplin.motif.fx.trading.Account accountFromClient, java.lang.String retClientName, com.caplin.ret.trapi.fx.execution.AccountService accountService) throws java.lang.Exception
Description copied from interface:FxTradingAccountManager
Returns the
Account
for a given RET client.Use this method to determine which account
Account
should be returned.- Specified by:
getAccount
in interfaceFxTradingAccountManager
- Throws:
java.lang.Exception
-
-