TraderList implemented
This commit is contained in:
@ -52,6 +52,10 @@ public abstract class AutoTrader implements Scheduler.TimerTask {
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Exchange.Account getAccount(){
|
||||
return se.getAccount(account_id);
|
||||
}
|
||||
|
||||
public abstract void start();
|
||||
|
||||
|
@ -19,6 +19,8 @@ public class Exchange { //extends Thread {
|
||||
//public static Timer timer = new Timer();
|
||||
|
||||
public Scheduler timer = new Scheduler();
|
||||
//public AutoTraderList traders = new AutoTraderList();
|
||||
public ArrayList <AutoTrader> traders = new ArrayList();
|
||||
|
||||
/**
|
||||
*
|
||||
@ -353,7 +355,7 @@ public class Exchange { //extends Thread {
|
||||
}
|
||||
|
||||
public Quote getLastQuoete() {
|
||||
return this.quoteHistory.first();
|
||||
return this.quoteHistory.last();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user