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 voidonOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo)Called when execution (fill/partial fill) happens.default voidonOrderUpdated(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:OrdersListenerCalled each time order is changed (placed/cancelled/updated/filled/partially filled. Please also seeOrdersListenerdescription.- Specified by:
onOrderUpdatedin interfaceOrdersListener
-
onOrderExecuted
default void onOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo)Description copied from interface:OrdersListenerCalled when execution (fill/partial fill) happens. Please also seeOrdersListenerdescription. Order withExecutionInfo.executionIdis 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:
onOrderExecutedin interfaceOrdersListener
-