Package velox.api.layer1.simplified
Interface OrdersListener
- All Known Subinterfaces:
AllDataModule,OrdersAdapter
public interface OrdersListener
Provides order updates.
Warning 1: Order prices are provided as raw price value (without dividing by min tick (pips)), so you will have to do multiplication yourself if you want to show those on main chart.
Warning 1: Order prices are provided as raw price value (without dividing by min tick (pips)), so you will have to do multiplication yourself if you want to show those on main chart.
-
Method Summary
Modifier and Type Method Description voidonOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo)Called when execution (fill/partial fill) happens.voidonOrderUpdated(velox.api.layer1.data.OrderInfoUpdate orderInfoUpdate)Called each time order is changed (placed/cancelled/updated/filled/partially filled.
-
Method Details
-
onOrderUpdated
void onOrderUpdated(velox.api.layer1.data.OrderInfoUpdate orderInfoUpdate)Called each time order is changed (placed/cancelled/updated/filled/partially filled. Please also seeOrdersListenerdescription. -
onOrderExecuted
void onOrderExecuted(velox.api.layer1.data.ExecutionInfo executionInfo)Called when execution (fill/partial fill) happens. Please also seeOrdersListenerdescription. Order withExecutionInfo.executionIdis supposed to exist (you should get at least oneonOrderUpdated(OrderInfoUpdate)for that order first). Note, that there will be a separateonOrderUpdated(OrderInfoUpdate)call reflecting filled/unfilled size change.
-