@ex-master/core
Advanced tools
Comparing version 0.1.56 to 0.1.57
@@ -262,5 +262,11 @@ "use strict"; | ||
if (descriptor) { | ||
await this.cancelOrder(active, false); | ||
await this.tickBalance(active); | ||
await this.checkAvailableAndOrder(group, label, descriptor); | ||
if (this.isBalanceSufficient(descriptor)) { | ||
await this.cancelOrder(active, false); | ||
await this.checkAvailableAndOrder(group, label, descriptor); | ||
} | ||
else { | ||
await this.cancelOrder(active); | ||
await this.tickBalance(active); | ||
await this.checkAvailableAndOrder(group, label, descriptor); | ||
} | ||
} | ||
@@ -267,0 +273,0 @@ else { |
{ | ||
"name": "@ex-master/core", | ||
"version": "0.1.56", | ||
"version": "0.1.57", | ||
"main": "bld/index.js", | ||
@@ -5,0 +5,0 @@ "types": "bld/index.d.ts", |
33491
830