Accounts

class Accounts(session: Session, production: Boolean?, verbose: Boolean?, baseUrl: String?, retryPolicy: RetryPolicy<Any>?) : Service

Functions

createClient
Link copied to clipboard
fun <T> createClient(javaClass: Class<T>, module: SimpleModule? = null): T
execute
Link copied to clipboard
fun <T> execute(call: Call<T>): Response<T>
getBalance
Link copied to clipboard
fun getBalance(accountIdKey: String): AccountBalance?
getTransaction
Link copied to clipboard
fun getTransaction(accountIdKey: String, transactionId: TransactionId): Transaction?
Get a specific transaction
list
Link copied to clipboard
fun list(): List<Account>?
List user’s accounts
listTransactions
Link copied to clipboard
fun listTransactions(accountIdKey: String, startDate: GregorianCalendar? = null, endDate: GregorianCalendar? = null, sortOrder: TransactionSortOrder? = null, startAt: TransactionId? = null, count: Int? = null): TransactionResponse?
List transactions for an account
viewPortfolio
Link copied to clipboard
fun viewPortfolio(accountIdKey: String, sortBy: PortfolioSortBy? = null, sortOrder: TransactionSortOrder? = null, marketSession: MarketSession? = null, totalsRequired: Boolean? = null, lotsRequired: Boolean? = null, count: Int? = null): Portfolio?
View the portfolio for an account

Properties

retryPolicy
Link copied to clipboard
val retryPolicy: RetryPolicy<Any>? = null
session
Link copied to clipboard
val session: Session

Sources

jvm source
Link copied to clipboard