Package velox.api.layer1
Interface Layer1ApiTradingAdapter
- All Superinterfaces:
Layer1ApiTradingListener
- All Known Subinterfaces:
Layer1ApiAdapter,OnlineValueCalculatorAdapter,StrategyUpdateGenerator
Provides default empty implementations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonBalance(BalanceInfo balanceInfo) Called when account balance information changesdefault voidonOrderExecuted(ExecutionInfo executionInfo) Called when one of our orders gets executeddefault voidonOrderUpdated(OrderInfoUpdate orderInfoUpdate) Called when order is updated (order creation is also considered an update).default voidonStatus(StatusInfo statusInfo) Called when instrument status information changes (PnL, number of open orders, position, etc).
-
Method Details
-
onOrderUpdated
Description copied from interface:Layer1ApiTradingListenerCalled when order is updated (order creation is also considered an update).- Specified by:
onOrderUpdatedin interfaceLayer1ApiTradingListener- Parameters:
orderInfoUpdate- information about update
-
onOrderExecuted
Description copied from interface:Layer1ApiTradingListenerCalled when one of our orders gets executed- Specified by:
onOrderExecutedin interfaceLayer1ApiTradingListener- Parameters:
executionInfo- information about execution
-
onStatus
Description copied from interface:Layer1ApiTradingListenerCalled when instrument status information changes (PnL, number of open orders, position, etc).- Specified by:
onStatusin interfaceLayer1ApiTradingListener- Parameters:
statusInfo- status information
-
onBalance
Description copied from interface:Layer1ApiTradingListenerCalled when account balance information changes- Specified by:
onBalancein interfaceLayer1ApiTradingListener- Parameters:
balanceInfo- account balance information
-