Skip to main content

OrderCancelParameters

Package: velox.api.layer1.data

Type: Class

Inheritance: java.lang.Object รขโ€ โ€™ velox.api.layer1.data.OrderUpdateParameters รขโ€ โ€™ OrderCancelParameters

Descriptionโ€‹

Used to cancel the order.

Fieldsโ€‹

batchIdโ€‹

public final long batchId

Orders with the same value will be attempted to be cancelled at once. This is a hint to provider that these requests are sent at once and optimizations can be applied. Some providers might skip redundant cancellations within batch.

batchEndโ€‹

public final boolean batchEnd

Marks end of batch. Failing to send this might indefinitely delay execution of batch.

Inherited Fields:

  • orderId from velox.api.layer1.data.OrderUpdateParameters

Constructorsโ€‹

OrderCancelParametersโ€‹

public OrderCancelParameters(String orderId)

Request to cancel single order.

OrderCancelParametersโ€‹

public OrderCancelParameters(String orderId, boolean batchEnd)

Request to cancel single order.

Parameters:

  • orderId - ID of the order to cancel.
  • batchEnd - If true it's a single order cancellation request. If false it's a start of new cancellation batch. Unique batch ID will be generated automatically.

OrderCancelParametersโ€‹

public OrderCancelParameters(String orderId, long batchId, boolean batchEnd)

Methodsโ€‹

toStringโ€‹

public String toString()

Overrides: toString in class velox.api.layer1.data.OrderUpdateParameters

Inherited Methods from java.lang.Object:

  • clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait