Som reformatting
This commit is contained in:
parent
9a88f42b7e
commit
97366b8335
@ -138,19 +138,18 @@ public class SimpleTrader extends AbstractTrader implements EventListener {
|
||||
ex = getWorld().getDefaultExchange();
|
||||
api = ex.getAPI(p);
|
||||
|
||||
AssetPair msftp = getWorld().getAssetPair(getWorld().getAssetBySymbol("MSFT"),
|
||||
AssetPair msftp = getWorld().getAssetPair(
|
||||
getWorld().getAssetBySymbol("MSFT"),
|
||||
getWorld().getAssetBySymbol("EUR"));
|
||||
|
||||
TradingAPI mapi = ex.getAPI(msftp);
|
||||
|
||||
Order ob = api.createOrder(account_b, Order.Type.BUYLIMIT, 20, 100);
|
||||
Order obm = mapi.createOrder(account_b, Order.Type.BUYLIMIT, 20, 100);
|
||||
|
||||
|
||||
Order oba = api.createOrder(account_1, Order.Type.SELLLIMIT, 20, 100);
|
||||
Order obam = mapi.createOrder(account_1, Order.Type.SELLLIMIT, 20, 100);
|
||||
|
||||
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user