node-binance-api
node-binance-api copied to clipboard
Line 1189 json is not iterable error while cancelling orders
Getting a sporadic error at 1189 that json is not iterable. I see the function to check exists but is not used there. I fixed it locally and seems to work.
I changed under the cancelOrders function to the following:
if (isIterable(json) == false || json.length === 0) { if (callback) return callback.call(this, 'No orders present for this symbol', {}, symbol); }