Moved Order class out of Exchange class into a separate file.

Use sesim.order now instead.
This commit is contained in:
7u83
2017-10-08 19:43:43 +02:00
parent 5e6df1f3c5
commit f4d4ba2c46
11 changed files with 105 additions and 87 deletions

View File

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

View File

@ -38,6 +38,7 @@ import sesim.Exchange.Account;
import sesim.Exchange.AccountListener;
import sesim.Exchange.OrderStatus;
import sesim.Exchange.OrderType;
import sesim.Order;
import sesim.Quote;
/**
@ -202,7 +203,7 @@ public class RandomTraderA extends AutoTraderBase implements AccountListener {
sesim.Scheduler.TimerTaskDef timerTask;
@Override
public void accountUpdated(Account a, Exchange.Order o) {
public void accountUpdated(Account a, Order o) {
setStatus("Account update -%s ", o.getOrderStatus().toString());
setStatus("In Task: %s", Boolean.toString(this.intask));
//System.out.printf("Order updated %s %d\n", o.getOrderStatus().toString(), Thread.currentThread().getId());