DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.24k stars 2.04k forks source link

get balance error on kraken #1590

Open sfdu opened 6 years ago

sfdu commented 6 years ago

I have this error when I am running ./zenbot.sh balance and when the zenbot wants to buy or sell any currency. zenbot is running on ubuntu and kraken API

./zenbot.sh balance /zenbot/commands/balance.js:36 s.exchange.getBalance(s, function (err, balance) { ^

TypeError: Cannot read property 'getBalance' of undefined at balance (/zenbot/commands/balance.js:36:20) at Command. (/zenbot/commands/balance.js:68:7) at Command.listener (/zenbot/node_modules/commander/index.js:315:8) at emitTwo (events.js:126:13) at Command.emit (events.js:214:7) at Command.parseArgs (/zenbot/node_modules/commander/index.js:651:12) at Command.parse (/zenbot/node_modules/commander/index.js:474:21) at /zenbot/zenbot.js:46:13 at FSReqWrap.oncomplete (fs.js:135:15)

Any idea what is wrong? thank you

njannink commented 6 years ago

I'm busy adding support for another exchange and I get the same error so I doubt it has anything to do with Kraken.

wiiisp commented 6 years ago

I get the exact same error on kraken. Anyone have an idea?

brucetus commented 6 years ago

I have a feeling these balance errors on many exchanges might be due to this commit https://github.com/DeviaVir/zenbot/commit/0d0bfd3dbb4c91772c3f78a164bcbe59187f1661#diff-ea60a8f0911de04106529d9e530373a8