Test stuff
This commit is contained in:
parent
f7c2b6266e
commit
22e77665ee
@ -1,4 +1,4 @@
|
||||
#Sat, 29 Dec 2018 21:04:02 +0100
|
||||
#Mon, 31 Dec 2018 14:02:50 +0100
|
||||
annotation.processing.enabled=true
|
||||
annotation.processing.enabled.in.editor=false
|
||||
annotation.processing.processors.list=
|
||||
@ -114,4 +114,4 @@ source.encoding=UTF-8
|
||||
src.dir=src
|
||||
test.src.dir=test
|
||||
ivy.home=/usr/share/java
|
||||
ivy.classpath=lib/commons-cli-1.0-javadoc.jar\:lib/commons-cli-1.0-sources.jar\:lib/commons-cli-1.0.jar\:lib/commons-lang-2.0-javadoc.jar\:lib/commons-lang-2.0-sources.jar\:lib/commons-lang-2.0.jar\:lib/commons-logging-1.0.jar\:lib/gson-2.8.5-javadoc.jar\:lib/gson-2.8.5-sources.jar\:lib/gson-2.8.5.jar\:lib/jackson-annotations-2.9.0.jar\:lib/jackson-core-2.9.7-javadoc.jar\:lib/jackson-core-2.9.7-sources.jar\:lib/jackson-core-2.9.7.jar\:lib/jackson-databind-2.9.7-javadoc.jar\:lib/jackson-databind-2.9.7-sources.jar\:lib/jackson-databind-2.9.7.jar\:lib/javahelp-2.0.05-javadoc.jar\:lib/javahelp-2.0.05-sources.jar\:lib/javahelp-2.0.05.jar\:lib/json-20160810-javadoc.jar\:lib/json-20160810-sources.jar\:lib/json-20160810.jar
|
||||
ivy.classpath=lib/gson-2.8.5-javadoc.jar\:lib/gson-2.8.5-sources.jar\:lib/gson-2.8.5.jar\:lib/jackson-annotations-2.9.0.jar\:lib/jackson-core-2.9.7-javadoc.jar\:lib/jackson-core-2.9.7-sources.jar\:lib/jackson-core-2.9.7.jar\:lib/jackson-databind-2.9.7-javadoc.jar\:lib/jackson-databind-2.9.7-sources.jar\:lib/jackson-databind-2.9.7.jar\:lib/javahelp-2.0.05-javadoc.jar\:lib/javahelp-2.0.05-sources.jar\:lib/javahelp-2.0.05.jar\:lib/json-20160810-javadoc.jar\:lib/json-20160810-sources.jar\:lib/json-20160810.jar
|
||||
|
@ -96,22 +96,29 @@ public class SimpleTrader extends AbstractTrader implements EventListener {
|
||||
|
||||
AssetPair p = getWorld().getDefaultAssetPair();
|
||||
|
||||
account_s = new Account();
|
||||
account_b = new Account();
|
||||
account_s = new Account(getWorld());
|
||||
account_b = new Account(getWorld());
|
||||
|
||||
AssetPack pack;
|
||||
pack = new AssetPack(p.getAsset(),200);
|
||||
account_s.add(pack);
|
||||
|
||||
pack = new AssetPack(p.getCurrency(),10000);
|
||||
pack = new AssetPack(p.getCurrency(),0);
|
||||
account_b.add(pack);
|
||||
|
||||
pack = new AssetPack(p.getCurrency(),1000);
|
||||
account_b.add(pack);
|
||||
account_b.setLeverage(0.0);
|
||||
|
||||
ex = getWorld().getDefaultExchange();
|
||||
api = ex.getAPI(p);
|
||||
|
||||
|
||||
Order oa = api.createOrder(account_b, Order.Type.BUYLIMIT, 200, 100);
|
||||
Order ob = api.createOrder(account_s, Order.Type.SELLLIMIT, 200,200);
|
||||
|
||||
Order oa = api.createOrder(account_b, Order.Type.BUYLIMIT, 50, 100);
|
||||
// Order ob = api.createOrder(account_s, Order.Type.SELLLIMIT, 200,100);
|
||||
|
||||
|
||||
|
||||
|
||||
// Order oa = api.createOrder(account_b, Order.Type.BUYLIMIT, 100, 10.0);
|
||||
|
Loading…
Reference in New Issue
Block a user