I had the same problem while moving to a new server.
2015-03-11 00:36:26 (INFO): Starting to watch the market: Bitfinex BTC/USD
2015-03-11 00:36:26 (DEBUG): ~market start
2015-03-11 00:36:26 (DEBUG): checking history
2015-03-11 00:36:26 (DEBUG): ~watch market
2015-03-11 00:36:26 (DEBUG): Requested BTC/USD trade data from Bitfinex ...
/root/gekko/node_modules/bitfinex/bitfinex.js:104
return cb(null, result);
^
TypeError: undefined is not a function
The cause seems to be an newer bitfinex module:
working server:
├─┬
bitfinex@0.2.9 (git+https://github.com/naddison36/bitfinex.git#8dab381f81687008b3e88c4f06a0a76c29eb5c69)
failed server:
├─┬
bitfinex@0.3.0 (git+https://github.com/naddison36/bitfinex.git#b5699b45904a9cdb682e9e824937847becb9b37c)
So try:
npm install bitfinex@'0.2.9'
Edit:
Next error:
/opt/gekko/methods/RSI.js:43
log.debug('\t', 'price:', this.lastPrice.toFixed(digits));
^
TypeError: Cannot call method 'toFixed' of undefined
As this is just a debug message, I've set config.debug = false;
I am tired now, but with this 2 changes gekko@bitfinex works for me on my new server.
@mynameisricky
Hope this helps you, too...
May I have my .2 BTC now?