Post
Topic
Re: Gekko - a javascript trading bot and backtesting platform
by
mynameisricky
on 10/03/2015, 23:09:50 UTC
Okay, good people, I would appreciate being rescued again. I have Gekko running on OpenShift but they have a 24 hour timer after which they idle you. I knew this but thought it wouldn't be that hard to make a simple Hello World app that I could ping and prevent time out. Turns out I'm rather spectacularly node.js inept so I bought a Lithuanian virtual private server for ridiculously cheap and I got Ubuntu server 14.04 running Node 0.12 (many thanks for the guide on how to do that in this thread!).

But alas, my Lithuanian Gekko had other plans:
Code:

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
    at Request._callback (/root/gekko/node_modules/bitfinex/bitfinex.js:104:16)
    at Request.self.callback (/root/gekko/node_modules/bitfinex/node_modules/request/request.js:344:22)
    at Request.emit (events.js:110:17)
    at Request. (/root/gekko/node_modules/bitfinex/node_modules/request/request.js:1239:14)
    at Request.emit (events.js:129:20)
    at IncomingMessage. (/root/gekko/node_modules/bitfinex/node_modules/request/request.js:1187:12)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

This is very strange to me. I have successfully gotten Gekko running on Windows, Ubuntu, and OpenShift's cloud server. What the hell is going on? I can't for the life of me figure out what's different from this Ubuntu server install to my Ubuntu laptop install.

Edit: I am now getting errors on all four installations of Gekko. Life is conspiring against me.
Edit edit: Got it working on my Windows machine, the one option that I can't leave running all the time. Life still conspiring against me.
Edit edit edit: Pushbullet is legit, son.