@ex-master/core
Advanced tools
Comparing version 0.2.20 to 0.2.21
@@ -22,2 +22,3 @@ /// <reference types="node" /> | ||
sizeDebounceLower: Decimal; | ||
limitMaker: boolean; | ||
} | ||
@@ -24,0 +25,0 @@ export interface OrderBasicDescriptor { |
@@ -249,3 +249,3 @@ "use strict"; | ||
.map((descriptor) => { | ||
let { label, market, type, price, size, priority, asap, priceDebounce, sizeDebounce, } = descriptor; | ||
let { label, market, type, price, size, priority, asap, priceDebounce, sizeDebounce, limitMaker, } = descriptor; | ||
price = this.ensurePricePrecision(market, price); | ||
@@ -261,2 +261,3 @@ size = this.ensureSizePrecision(market, size, 'down'); | ||
asap: !!asap, | ||
limitMaker: !!limitMaker, | ||
price: this.ensurePricePrecision(market, price), | ||
@@ -414,3 +415,3 @@ size: this.ensureSizePrecision(market, size, 'down'), | ||
} | ||
return !!(yield this.order(group, label, Object.assign({}, descriptor, { size }))); | ||
return !!(yield this.order(group, label, Object.assign({}, descriptor, { size }), { limitMaker: descriptor.limitMaker })); | ||
}); | ||
@@ -417,0 +418,0 @@ } |
@@ -24,2 +24,3 @@ import { Decimal } from 'decimal.js'; | ||
asap?: boolean; | ||
limitMaker?: boolean; | ||
} | ||
@@ -26,0 +27,0 @@ export interface OrderPaidFee { |
{ | ||
"name": "@ex-master/core", | ||
"version": "0.2.20", | ||
"version": "0.2.21", | ||
"main": "bld/library/index.js", | ||
@@ -29,3 +29,3 @@ "types": "bld/library/index.d.ts", | ||
}, | ||
"gitHead": "a2501e16fc3a3c6c4a8165d55b6da514c0d78635" | ||
"gitHead": "9e6c4f831f694eb7484f637de340c8de9126bd96" | ||
} |
@@ -40,2 +40,3 @@ import {EventEmitter} from 'events'; | ||
sizeDebounceLower: Decimal; | ||
limitMaker: boolean; | ||
} | ||
@@ -483,2 +484,3 @@ | ||
sizeDebounce, | ||
limitMaker, | ||
} = descriptor; | ||
@@ -498,2 +500,3 @@ | ||
asap: !!asap, | ||
limitMaker: !!limitMaker, | ||
price: this.ensurePricePrecision(market, price), | ||
@@ -750,6 +753,11 @@ size: this.ensureSizePrecision(market, size, 'down'), | ||
return !!(await this.order(group, label, { | ||
...descriptor, | ||
size, | ||
})); | ||
return !!(await this.order( | ||
group, | ||
label, | ||
{ | ||
...descriptor, | ||
size, | ||
}, | ||
{limitMaker: descriptor.limitMaker}, | ||
)); | ||
} | ||
@@ -756,0 +764,0 @@ |
@@ -27,2 +27,3 @@ import {Decimal} from 'decimal.js'; | ||
asap?: boolean; | ||
limitMaker?: boolean; | ||
} | ||
@@ -29,0 +30,0 @@ |
Sorry, the diff of this file is not supported yet
126848
2602