Orders

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

Functions

cancelOrder
Link copied to clipboard
fun cancelOrder(accountIdKey: String, orderId: Long): CancelOrderResponse?
Cancel an order
createClient
Link copied to clipboard
fun <T> createClient(javaClass: Class<T>, module: SimpleModule? = null): T
createPreview
Link copied to clipboard
fun createPreview(accountIdKey: String, request: PreviewRequest): PreviewOrderResponse?
Create an order preview
execute
Link copied to clipboard
fun <T> execute(call: Call<T>): Response<T>
list
Link copied to clipboard
fun list(accountIdKey: String, marker: String? = null, count: Int? = null, status: OrderStatus? = null, fromDate: GregorianCalendar? = null, toDate: GregorianCalendar? = null, symbol: String? = null, securityType: SecurityType? = null, transactionType: OrderTransactionType? = null, marketSession: MarketSession? = null): OrdersResponse?
List orders for an account
placeOrder
Link copied to clipboard
fun placeOrder(accountIdKey: String, previewRequest: PreviewRequest, previewResponse: PreviewOrderResponse): PlaceOrderResponse?
Place an order

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