Refactoring account_id account_id_generator now

This commit is contained in:
2017-10-09 15:48:50 +02:00
parent 201709b053
commit dfe4661d11
3 changed files with 12 additions and 14 deletions

View File

@ -374,7 +374,7 @@ public class RandomTraderA extends AutoTraderBase implements AccountListener {
public boolean doBuy() {
// AccountData ad = this.se.getAccountData(account_id);
// AccountData ad = this.se.getAccountData(account_id_generator);
Account ad = se.getAccount(account_id);
OrderType type = OrderType.BUYLIMIT;
@ -420,7 +420,7 @@ public class RandomTraderA extends AutoTraderBase implements AccountListener {
public boolean doSell() {
// RandomTraderConfig myoldconfig = (RandomTraderConfig) this.oldconfig;
//AccountData ad = this.se.getAccountData(account_id);
//AccountData ad = this.se.getAccountData(account_id_generator);
Account ad = se.getAccount(account_id);

View File

@ -31,12 +31,10 @@ import java.util.Set;
import javax.swing.JDialog;
import org.json.JSONArray;
import org.json.JSONObject;
//import sesim.AccountData;
import sesim.AutoTraderBase;
import sesim.AutoTraderGui;
import sesim.Exchange;
import sesim.Exchange.Account;
import sesim.Order.OrderType;
import sesim.Quote;
@ -266,7 +264,7 @@ public class RandomTraderB extends AutoTraderBase {
public boolean doBuy() {
// AccountData ad = this.se.getAccountData(account_id);
// AccountData ad = this.se.getAccountData(account_id_generator);
Account ad = se.getAccount(account_id);
@ -306,7 +304,7 @@ public class RandomTraderB extends AutoTraderBase {
public boolean doSell() {
// RandomTraderConfig myoldconfig = (RandomTraderConfig) this.oldconfig;
//AccountData ad = this.se.getAccountData(account_id);
//AccountData ad = this.se.getAccountData(account_id_generator);
Account ad = se.getAccount(account_id);