Moved Account class out of Exchange to sesim

This commit is contained in:
2017-10-09 18:35:20 +02:00
parent 4aacac8d76
commit f7731c2381
3 changed files with 33 additions and 6 deletions

View File

@ -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;