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

notification issue in sim mode #605

Closed
ituhin opened this issue Oct 10, 2017 · 4 comments
Closed

notification issue in sim mode #605

ituhin opened this issue Oct 10, 2017 · 4 comments

Comments

@ituhin
Copy link

ituhin commented Oct 10, 2017

I had pushbullet notification on in the config, and i was running a sim with sar strategy,
and suddenly 100s of new tabs popped up in my chrome (with the location pushbullet.com). and it was keep on coming continuously. system became very slow and i had to force quit my chrome.

@emabo
Copy link
Contributor

emabo commented Oct 10, 2017

yes, because at the moment it sends notifications for each buy/sell op even if you are in sim mode. We can bind this behaviour to trade or paper running modes.

@ituhin
Copy link
Author

ituhin commented Oct 10, 2017

yea. i would suggest trade mode only

@dsrikanth
Copy link
Contributor

In zenbot/lib/engine.js, there are 3 places where notify.pushMessage happens. If the notify.pushMessage is wrapped inside a conditional statement (something like below), it will send notification only in live mode.

if (so.mode === 'live') {
  notify.pushMessage(......)
}

emabo added a commit to emabo/zenbot that referenced this issue Oct 10, 2017
@emabo
Copy link
Contributor

emabo commented Oct 10, 2017

I would leave paper mode for testing and I think it's not necessary to put the condition at line 187, because a few lines before there was a return for all mode not equal to 'live'

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

No branches or pull requests

3 participants