Navigation Menu

Skip to content

1.0.2

Compare
Choose a tag to compare
@ssoper ssoper released this 21 Dec 19:45
0f48191
  • 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"}")
        }
    }
}