When importing a coin pair from Binance, and then running a live Gekko for paper trading I get the error:
_stream_writable.js:464
TypeError: cb is not a function
at afterWrite (_stream_writable.js:464:3)
I tried swapping out the line:
return _.map(_.cloneDeep(batch), function(trade) {
in tradeBatcher.js so that it used .clone instead of .cloneDeep per this bug report on lodash https://github.com/nodejs/node/issues/10985 but results didn't change.
Weird thing is when I remove the coin pair data so that I get all the data from the exchange, I don't have the error. This happens with other coin pairs as well.
--UPDATE--
The error was coming from:
line 464: var state = stream._writableState;
in gekko-stable\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_writable.js.
I updated the line to just be = true and I no longer get the error. Can someone tell me why this is happening? My normal language is C# and this doesn't make sense to me. Also, anyone know the correct fix to make for it?
_stream_writable.js:464
TypeError: cb is not a function
at afterWrite (_stream_writable.js:464:3)
I tried swapping out the line:
return _.map(_.cloneDeep(batch), function(trade) {
in tradeBatcher.js so that it used .clone instead of .cloneDeep per this bug report on lodash https://github.com/nodejs/node/issues/10985 but results didn't change.
Weird thing is when I remove the coin pair data so that I get all the data from the exchange, I don't have the error. This happens with other coin pairs as well.
--UPDATE--
The error was coming from:
line 464: var state = stream._writableState;
in gekko-stable\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_writable.js.
I updated the line to just be = true and I no longer get the error. Can someone tell me why this is happening? My normal language is C# and this doesn't make sense to me. Also, anyone know the correct fix to make for it?