Interface UserService
-
- All Known Implementing Classes:
UserServiceXChangeImplementation
public interface UserService
Service getting information about user, accounts and balances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,AccountDTO>
getAccounts()
Retrieve user accounts information from exchange.Map<String,AccountDTO>
getAccountsFromCache()
Retrieve user accounts information from cache.Optional<UserDTO>
getUser()
Retrieve user information from exchange (user, accounts and balances).
-
-
-
Method Detail
-
getUser
Optional<UserDTO> getUser()
Retrieve user information from exchange (user, accounts and balances).- Returns:
- user from exchange
-
getAccounts
Map<String,AccountDTO> getAccounts()
Retrieve user accounts information from exchange.- Returns:
- accounts
-
getAccountsFromCache
Map<String,AccountDTO> getAccountsFromCache()
Retrieve user accounts information from cache.- Returns:
- accounts
-
-