Package velox.api.layer1.data
Class OrderCancelParameters
java.lang.Object
velox.api.layer1.data.OrderUpdateParameters
velox.api.layer1.data.OrderCancelParameters
Used to cancel the order
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanMarks end of batch.final longOrders with the same value will be attempted to be cancelled at once.Fields inherited from class velox.api.layer1.data.OrderUpdateParameters
orderEntryType, orderId -
Constructor Summary
ConstructorsConstructorDescriptionOrderCancelParameters(String orderId) Request to cancel single orderOrderCancelParameters(String orderId, boolean batchEnd) Request to cancel single order.OrderCancelParameters(String orderId, long batchId, boolean batchEnd) -
Method Summary
-
Field Details
-
batchId
public final long batchIdOrders 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 batchEndMarks end of batch. Failing to send this might indefinitely delay execution of batch.
-
-
Constructor Details
-
OrderCancelParameters
Request to cancel single order -
OrderCancelParameters
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
-
-
Method Details
-
toBuilder
- Overrides:
toBuilderin classOrderUpdateParameters
-
toString
- Overrides:
toStringin classOrderUpdateParameters
-