Moved Account class out of Exchange to sesim

This commit is contained in:
2017-10-09 16:28:27 +02:00
parent dfe4661d11
commit 4aacac8d76
14 changed files with 110 additions and 76 deletions

View File

@ -25,7 +25,7 @@
*/
package traders.ManTrader;
import sesim.Exchange.Account;
import sesim.Account;
/**
*

View File

@ -27,7 +27,7 @@ package traders.ManTrader;
import gui.Globals;
import sesim.Exchange.Account;
import sesim.Account;
import sesim.Order.OrderType;
import sesim.Quote;

View File

@ -39,6 +39,7 @@ import sesim.Exchange;
import sesim.Exchange.AccountListener;
import sesim.Order.OrderStatus;
import sesim.Order;
import sesim.Account;
/**
*
@ -115,7 +116,7 @@ public class ManTrader extends AutoTraderBase implements AccountListener, AutoTr
}
@Override
public void accountUpdated(Exchange.Account a, Order o) {
public void accountUpdated(Account a, Order o) {
//this.consoleDialog.cons
//System.out.printf("AccountListener called\n");

View File

@ -26,7 +26,7 @@
package traders.ManTrader;
import javax.swing.JPanel;
import sesim.Exchange.Account;
import sesim.Account;
/**
*

View File

@ -34,7 +34,7 @@ import org.json.JSONObject;
import sesim.AutoTraderBase;
import sesim.AutoTraderGui;
import sesim.Exchange;
import sesim.Exchange.Account;
import sesim.Account;
import sesim.Exchange.AccountListener;
import sesim.Order.OrderType;
@ -86,7 +86,7 @@ public class RandomTraderA extends AutoTraderBase implements AccountListener {
public long timerTask() {
intask = true;
owait = null;
sesim.Exchange.Account a = se.getAccount(account_id);
sesim.Account a = se.getAccount(account_id);
long rc = this.doTrade();
setStatus("Sleeping for %d ms", rc);
intask = false;

View File

@ -35,7 +35,7 @@ import org.json.JSONObject;
import sesim.AutoTraderBase;
import sesim.AutoTraderGui;
import sesim.Exchange.Account;
import sesim.Account;
import sesim.Order.OrderType;
import sesim.Quote;
@ -75,7 +75,7 @@ public class RandomTraderB extends AutoTraderBase {
@Override
public long timerTask() {
sesim.Exchange.Account a = se.getAccount(account_id);
sesim.Account a = se.getAccount(account_id);
long rc = this.doTrade();
return rc;