Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Error GetBalance Kraken API #1649

Closed
rroux opened this issue Jul 5, 2018 · 2 comments
Closed

Error GetBalance Kraken API #1649

rroux opened this issue Jul 5, 2018 · 2 comments
Labels
exchange Relating to an exchange question wontfix

Comments

@rroux
Copy link

rroux commented Jul 5, 2018

System information

Have I written custom code (as opposed to using zenbot vanilla): No.
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04
Zenbot version (commit ref, or version): Commits on Jul 1, 2018
Zenbot branch: stable
NodeJS version: v9.11.1
Python version (when using a python script): Not using python
Exact command to reproduce (include everything): No
Did I make any changes to conf-sample.js?:
c.selector = 'kraken.XXMR-ZEUR'
c.strategy = 'trend_ema'

Describe the problem

I can't see the purchase and sale on the chart, the trade meter remains at 0, while there is trades done on Kraken. And I have the following error in the logs

getBalance error:
{ RequestError: Request timed out
at timeoutFn (/root/zenbot/node_modules/kraken-api/node_modules/got/index.js:131:53)
at asPromise (/root/zenbot/node_modules/kraken-api/node_modules/got/index.js:134:9)
at got (/root/zenbot/node_modules/kraken-api/node_modules/got/index.js:386:10)
at rawRequest (/root/zenbot/node_modules/kraken-api/kraken.js:42:25)
at KrakenClient.privateMethod (/root/zenbot/node_modules/kraken-api/kraken.js:171:20)
at KrakenClient.api (/root/zenbot/node_modules/kraken-api/kraken.js:96:16)
at Object.getBalance (/root/zenbot/extensions/exchanges/kraken/exchange.js:146:14)
at Object.syncBalance (/root/zenbot/lib/engine.js:211:16)
at saveSession (/root/zenbot/commands/trade.js:551:18)
at /root/zenbot/commands/trade.js:712:13
at /root/zenbot/extensions/exchanges/kraken/exchange.js:139:9
at response.then (/root/zenbot/node_modules/kraken-api/kraken.js:125:23)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
name: 'RequestError',
code: 'ETIMEDOUT',
host: 'api.kraken.com',
hostname: 'api.kraken.com',
method: 'POST',
path: '/0/private/Balance',
protocol: 'https:',
url: 'https://api.kraken.com/0/private/Balance' }

2018-07-05 11:25:56 - error syncing balance
{ RequestError: Request timed out
at timeoutFn (/root/zenbot/node_modules/kraken-api/node_modules/got/index.js:131:53)
at asPromise (/root/zenbot/node_modules/kraken-api/node_modules/got/index.js:134:9)
at got (/root/zenbot/node_modules/kraken-api/node_modules/got/index.js:386:10)
at rawRequest (/root/zenbot/node_modules/kraken-api/kraken.js:42:25)
at KrakenClient.privateMethod (/root/zenbot/node_modules/kraken-api/kraken.js:171:20)
at KrakenClient.api (/root/zenbot/node_modules/kraken-api/kraken.js:96:16)
at Object.getBalance (/root/zenbot/extensions/exchanges/kraken/exchange.js:146:14)
at Object.syncBalance (/root/zenbot/lib/engine.js:211:16)
at saveSession (/root/zenbot/commands/trade.js:551:18)
at /root/zenbot/commands/trade.js:712:13
at /root/zenbot/extensions/exchanges/kraken/exchange.js:139:9
at response.then (/root/zenbot/node_modules/kraken-api/kraken.js:125:23)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
name: 'RequestError',
code: 'ETIMEDOUT',
host: 'api.kraken.com',
hostname: 'api.kraken.com',
method: 'POST',
path: '/0/private/Balance',
protocol: 'https:',
url: 'https://api.kraken.com/0/private/Balance' }

@DeviaVir DeviaVir added question exchange Relating to an exchange labels Jul 5, 2018
@diegstroyer
Copy link
Contributor

diegstroyer commented Jul 6, 2018

Try the things suggested in doc from Zenbot:

zenbot/docs/exchanges/kraken.md

@stale
Copy link

stale bot commented Oct 24, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
exchange Relating to an exchange question wontfix
Projects
None yet
Development

No branches or pull requests

3 participants