java.lang.Object
com.caplin.motif.fx.ret.fxtrading.extension.accountmanager.ClientAccountManager
All Implemented Interfaces:
FxTradingAccountManager

public class ClientAccountManager extends Object implements FxTradingAccountManager
An FxTradingAccountManager implementation which always returns the provided account.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.caplin.motif.fx.trading.Account
    getAccount(com.caplin.motif.UserTrade trade, com.caplin.motif.fx.trading.Account accountFromClient, String retClientName, com.caplin.ret.trapi.fx.execution.AccountService accountService)
    Returns the Account for a given RET client.
    com.caplin.motif.fx.trading.Account
    getAccount(com.caplin.motif.UserTrade trade, String legId, com.caplin.motif.fx.trading.Account accountFromClient, String retClientName, com.caplin.ret.trapi.fx.execution.AccountService accountService)
    Returns the Account for a given RET client.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClientAccountManager

      public ClientAccountManager()
  • Method Details

    • getAccount

      public com.caplin.motif.fx.trading.Account getAccount(com.caplin.motif.UserTrade trade, com.caplin.motif.fx.trading.Account accountFromClient, String retClientName, com.caplin.ret.trapi.fx.execution.AccountService accountService) throws 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 interface FxTradingAccountManager
      Throws:
      Exception
    • getAccount

      public com.caplin.motif.fx.trading.Account getAccount(com.caplin.motif.UserTrade trade, String legId, com.caplin.motif.fx.trading.Account accountFromClient, String retClientName, com.caplin.ret.trapi.fx.execution.AccountService accountService) throws 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 interface FxTradingAccountManager
      Throws:
      Exception