@Throws(IOException::class) private fun cancelOrder(contract: Contract, order: TradeOrder) { val orderState = OrderState() orderState.m_status = OrderStatus.CANCELLED this.brokerModel.openOrder(order.getOrderKey(), contract, order, orderState) order.setStatus(OrderStatus.CANCELLED) }
Method cancelOrder .