- Simplify creation of clients and expose methods that can take E*TRADE values directly.
- Expose API operations in this client class.
val client = EtradeClient(key, secret, username, password, EtradeClient.Endpoint.LIVE)
client.accounts.list()?.let { accounts ->
accounts.forEach { account ->
account.apply {
println()
println("Account ID ($accountId)")
println("Key: $accountIdKey")
println("Type: $accountType")
println("Name: ${name ?: "None"}")
println("Status: ${status ?: "None"}")
println("Description: ${description ?: "None"}")
}
}
}