refactoring

This commit is contained in:
2018-12-08 08:11:14 +01:00
parent 98c42fb28a
commit 137c6af75d
9 changed files with 9 additions and 13 deletions

View File

@ -31,7 +31,6 @@ import java.util.HashMap;
import java.util.SortedSet;
import java.util.TreeSet;
import opensesim.world.World;
import opensesim.sesim.AssetPair;
import opensesim.sesim.interfaces.Configurable;
import org.json.JSONObject;
@ -60,10 +59,12 @@ public class Exchange implements Configurable{
}
Exchange(World world, JSONObject cfg){
final int x;
}
public String getName() {
return name;
return name;
}
public String getSymbol(){
@ -81,7 +82,7 @@ public class Exchange implements Configurable{
return null;
}
public Collection getOrderBook(AssetPair a){
public Collection<Order> getOrderBook(AssetPair a){
TradingEnv e = asset_pairs.get(a);
SortedSet<Order> ob = e.order_books.get(Order.Type.BUYLIMIT);
return Collections.unmodifiableCollection(ob);