Class UserServiceDryModeImplementation

  • All Implemented Interfaces:
    UserService

    public class UserServiceDryModeImplementation
    extends BaseService
    implements UserService
    User service (dry mode implementation).
    • Constructor Detail

      • UserServiceDryModeImplementation

        public UserServiceDryModeImplementation()
        Constructor.
    • Method Detail

      • setDependencies

        public void setDependencies​(GenericCassandreStrategy newStrategy)
        Set dependencies.
        Parameters:
        newStrategy - strategy
      • getUser

        public final Optional<UserDTO> getUser()
        Description copied from interface: UserService
        Retrieve user information from exchange (user, accounts and balances).
        Specified by:
        getUser in interface UserService
        Returns:
        account from exchange
      • addToBalance

        public void addToBalance​(CurrencyDTO currency,
                                 BigDecimal amount)
        Update balance of trade account (method call by trade service).
        Parameters:
        currency - currency
        amount - amount