zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

[feature] configurable notification system levels

Open infatrus opened this issue 8 years ago • 2 comments

System information

  • OS Platform and Distribution: Ubuntu 16.04.3 LTS (Xenial Xerus)
  • Zenbot version: unstable
  • NodeJS version: 8.9.4
  • Python version: -

Describe the problem

It would be nice to have possibility to configure notifications (eg. through conf.js). For example:

  • in manual trade mode I would like to receive notifications about buy and sell signals only
  • in live mode I need only bought and sold and so on...

infatrus avatar Jan 12 '18 18:01 infatrus

Hi,

Live mode: the notifications (bought and sold) are already working, I'm using them with telegram and they work also in paper mode. See in the conf-sample.js under c.notifiers.

Manual mode: looks like a good idea, I was also thinking that it would be really cool, especially when learning how this bot works, to just get the notification and then decide what to do.

Can you be more specific about "and so on"? If you write specific use cases that are missing, it's easier to implement them.

firepol avatar Jan 14 '18 09:01 firepol

The idea behind is to give users control over kind and frequency of notifications, rather than to have them "hardcoded" in sources. I can miss something... but there are four main modes: live, paper, manual and sim, also in manual mode, you can set limit order and market order. There is also a chance of an error occurring like getBalance. We have signals (buy, sell), information messages (buying, selling, bought, sold, balance), and condition messages (errors like getBalance). Users should have an easy control over all above, especially that in some cases (manual mode + limit order) user can get spammed with notifications (adjusting order - buying).

Maybe something like this: notifiers = { "notify": [ { "mode":"live", "notification":[ "buy", "sell", "buying", "selling", "error" ] }, { "mode":"manual", "notification":[ "buy", "sell", "error" ] }, { "mode":"paper", "notification":[ "buying", "selling", "balance" ] } ] }

infatrus avatar Jan 14 '18 20:01 infatrus