notifyPositionListeners(contract);
notifyPositionListeners(ContractBean.cash(contract.getCurrency()));
}
private void notifyPositionListeners(IContract contract) {
IPosition position = positionCalculator.getPositions().get(contract);
if (position != null) {
for (IPositionListener listener : orderPositionListeners) {
listener.onPositionUpdate(contract, new PositionBean(position));
}
}