Tomorrow I will test this code change to the MarketDepth.java
case Update:
if (position < levels) {
MarketDepthItem item = items.get(position);
item.setSize(size);
item.setPrice(price);
for (int i = 0; i < levels; i++) {
if (item.getPrice() == items.get(i).getPrice() &&
i != position) {
items.get(i).setSize(0);
}
}
}
I also disabled part of the validator that checks for multiple levels.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"JBookTrader" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jbooktrader?hl=en
-~----------~----~----~----~------~----~------~--~---