@ex-master/core
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -125,3 +125,3 @@ "use strict"; | ||
}) | ||
.filter(({ price, size }) => price.isPositive() && size.isPositive()); | ||
.filter(({ price, size }) => price.greaterThan(0) && size.greaterThan(0)); | ||
let labelSet = new Set(); | ||
@@ -221,2 +221,3 @@ let labelToActiveOrderMap = this.labelToActiveOrderMap; | ||
let { market, label, price, size } = descriptor; | ||
let originalSize = size; | ||
if (type === 'bid') { | ||
@@ -237,4 +238,4 @@ let value = price.mul(size); | ||
this.dashboard.info(type === 'bid' | ||
? `insufficient money, skipping order ${label}.` | ||
: `insufficient stock, skipping order ${label}.`); | ||
? `insufficient money, skipping order "${label}" ${price} * ${originalSize}.` | ||
: `insufficient stock, skipping order "${label}" ${price} * ${originalSize}.`); | ||
continue; | ||
@@ -241,0 +242,0 @@ } |
{ | ||
"name": "@ex-master/core", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"main": "bld/index.js", | ||
@@ -5,0 +5,0 @@ "types": "bld/index.d.ts", |
31824
763