Package velox.api.layer1.simplified
Interface OrdersAdapter
- All Superinterfaces:
OrdersListener
public interface OrdersAdapter extends OrdersListener
An adapter for
OrdersListener
with empty default method
implementations-
Method Summary
Modifier and Type Method Description default void
onOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo)
Called when execution (fill/partial fill) happens.default void
onOrderUpdated(velox.api.layer1.data.OrderInfoUpdate orderInfoUpdate)
Called each time order is changed (placed/cancelled/updated/filled/partially filled.
-
Method Details
-
onOrderUpdated
default void onOrderUpdated(velox.api.layer1.data.OrderInfoUpdate orderInfoUpdate)Description copied from interface:OrdersListener
Called each time order is changed (placed/cancelled/updated/filled/partially filled. Please also seeOrdersListener
description.- Specified by:
onOrderUpdated
in interfaceOrdersListener
-
onOrderExecuted
default void onOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo)Description copied from interface:OrdersListener
Called when execution (fill/partial fill) happens. Please also seeOrdersListener
description. Order withExecutionInfo.executionId
is supposed to exist (you should get at least oneOrdersListener.onOrderUpdated(OrderInfoUpdate)
for that order first). Note, that there will be a separateOrdersListener.onOrderUpdated(OrderInfoUpdate)
call reflecting filled/unfilled size change.- Specified by:
onOrderExecuted
in interfaceOrdersListener
-