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