From 6646912bd230a132caa9e67332aaaca706fc587f Mon Sep 17 00:00:00 2001 From: Diego Vinicius Date: Sat, 21 May 2022 12:49:02 -0300 Subject: [PATCH] Fix for orderId in orderStatus Currently, we have many open issues about the orderId not being set in the parameters for the orderStatus function, this commit fix that issue, and people can use orderStatus again. --- node-binance-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-binance-api.js b/node-binance-api.js index 615485fc..ac4f085e 100644 --- a/node-binance-api.js +++ b/node-binance-api.js @@ -3025,7 +3025,7 @@ let api = function Binance( options = {} ) { orderStatus: function ( symbol, orderid, callback, flags = {} ) { let parameters = Object.assign( { symbol: symbol }, flags ); if (orderid){ - Object.assign( { orderId: orderid }, parameters ) + Object.assign( parameters, { orderId: orderid } ) } if ( !callback ) {