Skip to content

Commit 57fbb23

Browse files
authored
quoteOrderQty by polygxn
use of quoteOrderQty
2 parents 713422b + 005b634 commit 57fbb23

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

node-binance-api.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ let api = function Binance( options = {} ) {
375375
opt.timeInForce = 'GTC';
376376
}
377377
}
378+
if (opt.type == 'MARKET' && typeof flags.quoteOrderQty !== 'undefined') {
379+
opt.quoteOrderQty = flags.quoteOrderQty
380+
delete opt.quantity;
381+
}
378382
if ( opt.type === 'OCO' ) {
379383
opt.price = price;
380384
opt.stopLimitPrice = flags.stopLimitPrice;

0 commit comments

Comments
 (0)