We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e1162 commit 005b634Copy full SHA for 005b634
1 file changed
node-binance-api.js
@@ -375,6 +375,10 @@ let api = function Binance( options = {} ) {
375
opt.timeInForce = 'GTC';
376
}
377
378
+ if (opt.type == 'MARKET' && typeof flags.quoteOrderQty !== 'undefined') {
379
+ opt.quoteOrderQty = flags.quoteOrderQty
380
+ delete opt.quantity;
381
+ }
382
if ( opt.type === 'OCO' ) {
383
opt.price = price;
384
opt.stopLimitPrice = flags.stopLimitPrice;
0 commit comments