We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 713422b + 005b634 commit 57fbb23Copy full SHA for 57fbb23
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