Package velox.api.layer1
Interface Layer1ApiTradingListener
- All Known Subinterfaces:
Layer1ApiAdapter,Layer1ApiListener,Layer1ApiTradingAdapter,OnlineValueCalculatorAdapter,StrategyUpdateGenerator
- All Known Implementing Classes:
Layer1ApiDepthFreezer,Layer1ApiInjectorRelay,Layer1ApiRelay,Layer1ApiStrategiesEchoMessagesLayer,Layer1ApiUpstreamRelay
public interface Layer1ApiTradingListener
Listener for order routing
-
Method Summary
Modifier and Type Method Description voidonBalance(BalanceInfo balanceInfo)Called when account balance information changesvoidonOrderExecuted(ExecutionInfo executionInfo)Called when one of our orders gets executedvoidonOrderUpdated(OrderInfoUpdate orderInfoUpdate)Called when order is updated (order creation is also considered an update).voidonStatus(StatusInfo statusInfo)Called when instrument status information changes (PnL, number of open orders, position, etc).
-
Method Details
-
onOrderUpdated
Called when order is updated (order creation is also considered an update).- Parameters:
orderInfoUpdate- information about update
-
onOrderExecuted
Called when one of our orders gets executed- Parameters:
executionInfo- information about execution
-
onStatus
Called when instrument status information changes (PnL, number of open orders, position, etc).- Parameters:
statusInfo- status information
-
onBalance
Called when account balance information changes- Parameters:
balanceInfo- account balance information
-