public interface Layer1ApiTradingAdapter extends Layer1ApiTradingListener
Provides default empty implementations.
Modifier and Type | Method and Description |
---|---|
default void |
onBalance(BalanceInfo balanceInfo)
Called when account balance information changes
|
default void |
onOrderExecuted(ExecutionInfo executionInfo)
Called when one of our orders gets executed
|
default 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).
|
default void onOrderUpdated(OrderInfoUpdate orderInfoUpdate)
Layer1ApiTradingListener
onOrderUpdated
in interface Layer1ApiTradingListener
orderInfoUpdate
- information about updatedefault void onOrderExecuted(ExecutionInfo executionInfo)
Layer1ApiTradingListener
onOrderExecuted
in interface Layer1ApiTradingListener
executionInfo
- information about executiondefault void onStatus(StatusInfo statusInfo)
Layer1ApiTradingListener
onStatus
in interface Layer1ApiTradingListener
statusInfo
- status informationdefault void onBalance(BalanceInfo balanceInfo)
Layer1ApiTradingListener
onBalance
in interface Layer1ApiTradingListener
balanceInfo
- account balance information