Zenbot: Can I run zenbot trade in the background ?

Created on 12 Oct 2017  路  3Comments  路  Source: DeviaVir/zenbot

I was thinking about leaving it running in the background in aws ec2 for a day

eg: nohup zenbot trade bitfinex.BTC-USD --paper --strategy rsi > /tmp/t.out &

but its not working. within a minute its saying stopped, though the process is running in the background. then i am able to do a fg and issue X for exit.

i used nohup so that i can do a logout from ec2 console, which gets disconnected anyway if i leave it open for too long. and i didnt wanna leave it running from my home as network is not that stable.

is there any way to make it work ?

question

Most helpful comment

I disagree, this is out of scope for zenbot. Running apps in the background with either Docker or screen/tmux is too common to have to be documented in the apps themselves.

All 3 comments

I installed screen on my EC2 instance run zenbot inside a screen. The nice thing is the ability to attach/detach and :split the window. So you can run multiple bots in a split window. Just search for GNU screen cheat sheet to get the ctrl+a commands to do things.. Also I'd suggest naming your sessions.. Eg 'screen -R trading' or 'screen -R paper'. So you can later attach by doing a 'screen -x trading'.

capture

I think part of this information should be included in the doc

I disagree, this is out of scope for zenbot. Running apps in the background with either Docker or screen/tmux is too common to have to be documented in the apps themselves.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sam-perez picture sam-perez  路  5Comments

nedievas picture nedievas  路  4Comments

linuxu678 picture linuxu678  路  4Comments

0DTE picture 0DTE  路  3Comments

gleblanc1783 picture gleblanc1783  路  3Comments