Added @override annotations

This commit is contained in:
7u83
2018-12-29 21:57:49 +01:00
parent ed07bd5819
commit b5cf77abbd
3 changed files with 6 additions and 20 deletions

View File

@ -25,23 +25,8 @@
*/
package opensesim.world;
import opensesim.world.AbstractAsset;
import opensesim.world.AbstractTrader;
import opensesim.world.AssetPair;
import opensesim.world.Exchange;
import opensesim.world.Order;
import opensesim.world.TradingAPI;
import opensesim.world.World;
import opensesim.util.scheduler.Event;
import opensesim.util.scheduler.EventListener;
import opensesim.world.AbstractAsset;
import opensesim.world.AbstractTrader;
import opensesim.world.Account;
import opensesim.world.AssetPair;
import opensesim.world.Exchange;
import opensesim.world.Order;
import opensesim.world.TradingAPI;
import opensesim.world.World;
import org.json.JSONObject;
/**
@ -125,8 +110,8 @@ public class SimpleTrader extends AbstractTrader implements EventListener {
api = ex.getAPI(p);
Order oa = api.createOrder(account_b, Order.Type.BUY, 200, 0);
Order ob = api.createOrder(account_s, Order.Type.SELL, 100, 0);
Order oa = api.createOrder(account_b, Order.Type.BUYLIMIT, 200, 100);
Order ob = api.createOrder(account_s, Order.Type.SELLLIMIT, 200,200);
// Order oa = api.createOrder(account_b, Order.Type.BUYLIMIT, 100, 10.0);

View File

@ -250,11 +250,12 @@ class TradingEngine implements TradingAPI {
this.checkSLOrders(price);
}
*/
//
// Match limited orders against limited orders
//
if (bidbook.isEmpty() || askbook.isEmpty()) {
// no orders at all, nothing to do
// no limit orders at all, nothing to do
break;
}