Skip to content

Commit a9e047e

Browse files
committed
Merge branch 'master' of github.com:carlosmiei/node-binance-api
2 parents 38a17da + b7fca74 commit a9e047e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

node-binance-api.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,12 @@ let api = function Binance( options = {} ) {
365365
let opt = {
366366
symbol: symbol,
367367
side: side,
368-
type: 'LIMIT',
369-
quantity: quantity
368+
type: 'LIMIT'
370369
};
370+
if(typeof flags.quoteOrderQty !== undefined && flags.quoteOrderQty > 0)
371+
opt.quoteOrderQty = flags.quoteOrderQty
372+
else
373+
opt.quantity = quantity
371374
if ( typeof flags.type !== 'undefined' ) opt.type = flags.type;
372375
if ( opt.type.includes( 'LIMIT' ) ) {
373376
opt.price = price;

0 commit comments

Comments
 (0)