Moved Account class out of Exchange to sesim
This commit is contained in:
@ -40,6 +40,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
protected AutoTraderInterface owner;
|
||||
|
||||
protected final ConcurrentHashMap<Long, Order> orders;
|
||||
protected ConcurrentHashMap<String,Integer> sharesm;
|
||||
|
||||
@Override
|
||||
public int compareTo(Object a) {
|
||||
@ -62,6 +63,10 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
public double getShares() {
|
||||
return shares;
|
||||
}
|
||||
|
||||
public double getShares(String symbol){
|
||||
return sharesm.get(symbol);
|
||||
}
|
||||
|
||||
public double getMoney() {
|
||||
return money;
|
||||
|
Reference in New Issue
Block a user