Post
Topic
Board Trading Discussion
Re: Gekko - a javascript trading bot for nodejs
by
arne
on 02/01/2014, 19:53:58 UTC
Hi, this might be a bug:

Code:
2014-01-02 19:46:57 (INFO):     ADVICE is to BUY @ 768.000 (0.406)

/home/pi/arne/gekko/portfolioManager.js:153
  if(this.minimalOrder.unit === 'currency')
                      ^
TypeError: Cannot read property 'unit' of undefined
    at [object Object]. (/home/pi/arne/gekko/portfolioManager.js:153:23)
    at [object Object].bound [as getMinimum] (/home/pi/arne/gekko/node_modules/lodash/dist/lodash.js:729:21)
    at [object Object]. (/home/pi/arne/gekko/portfolioManager.js:169:22)
    at [object Object].bound [as buy] (/home/pi/arne/gekko/node_modules/lodash/dist/lodash.js:729:21)
    at [object Object]. (/home/pi/arne/gekko/portfolioManager.js:126:12)
    at bound (/home/pi/arne/gekko/node_modules/lodash/dist/lodash.js:729:21)
    at /home/pi/arne/gekko/node_modules/async/lib/async.js:229:13
    at /home/pi/arne/gekko/node_modules/async/lib/async.js:139:25
    at /home/pi/arne/gekko/node_modules/async/lib/async.js:226:17
    at /home/pi/arne/gekko/node_modules/async/lib/async.js:553:34

Trying to buy @ BTC-e.
Where should the minimalOrder be set?
Thanks for the good work (y)