Zenbot: Suppress Kraken API warnings

Created on 12 Dec 2017  路  4Comments  路  Source: DeviaVir/zenbot

Hi,

Is there an option to suppress the Kraken API warnings? They're messing up my display :/

enhancement question

All 4 comments

No, and sincerely I think this should not be done.
Continously get some exchange API warnings / errors is a sinthom that using bot is extremely risky and could end with capital loose

Having a simple option like "--ignore-warnings-at-my-own-peril" wouldn't be so bad...

On your fork or local clone you can change
zenbot/extensions/exchanges/kraken/exchange.js
and comment line 85

console.warn(('\nKraken API warning - unable to call ' + method + ' (' + errorMsg + '), retrying in ' + timeout / 1000 + 's').yellow)

I noticed a bit late that the warning are sent to stderr, so simply redirecting fd 2 to /dev/null solves my issue :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DeviaVir picture DeviaVir  路  3Comments

linuxu678 picture linuxu678  路  4Comments

mrzobot picture mrzobot  路  3Comments

sam-perez picture sam-perez  路  5Comments

asafyish picture asafyish  路  3Comments