Service

open class Service(session: Session, _production: Boolean?, _verbose: Boolean?, _baseUrl: String?, retryPolicy: RetryPolicy<Any>?)

Debating whether to keep this class generic or go full ETRADE specific, current generic implementation would allow me to plug it into mult clients assuming their auth/session scheme isn't too weird. Going full client specific would let me ditch Failsafe and catch specific ETRADE errors in execute() and modify session vars with new tokens.

Constructors

Service
Link copied to clipboard
fun Service(session: Session, _production: Boolean?, _verbose: Boolean?, _baseUrl: String?, retryPolicy: RetryPolicy<Any>? = null)

Types

Companion
Link copied to clipboard
object Companion

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>

Properties

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

Inheritors

Accounts
Link copied to clipboard
Alerts
Link copied to clipboard
Market
Link copied to clipboard
Orders
Link copied to clipboard

Sources

jvm source
Link copied to clipboard