Username: Password:

Author Topic: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)  (Read 113829 times)

Offline kazinajc

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #120 on: June 25, 2017, 05:19:17 PM »
Node.js 7.x is nearly deprecied, not supported on last ubuntu and debian stretch.

Use the script on debian jessie or ubuntu 16.04.

Thanks, that worked!

One more question. Is it possible to manually add a new pair with a fairly new coin, that is not yet supported by script but is already on exchange? For example BTC_CFI, BTC_CANN, etc.

Offline Top0tun

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #121 on: June 25, 2017, 07:00:22 PM »
Hello All!
I install configurator and configure pairs. Configurator start pair, but config file is empty. Does anyone know why?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #122 on: June 25, 2017, 10:52:16 PM »
I install configurator and configure pairs. Configurator start pair, but config file is empty. Does anyone know why?

Which config file is empty? There are 2:
- ALLPAIRS.params.js --> that will be empty
- market-BTC_XXX-config.js --> should not be empty



One more question. Is it possible to manually add a new pair with a fairly new coin, that is not yet supported by script but is already on exchange? For example BTC_CFI, BTC_CANN, etc.

You can always run Gunbot without this generator. All you have to do is copy a config file and start the gunbot. You can use pm2:
Code: [Select]
pm2 start ./gunthy-linuxx64 --name "BTC_XXX" -- BTC_XXX bittrex
But I updated the generator to support those new coins now:
Code: [Select]
npm install -g generator-gunbot

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Top0tun

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #123 on: June 26, 2017, 02:25:17 AM »
I update generator and now all files are filled, but bot do not accept them.
market-BTC_XXX-config.js - was empty,  ALLPAIRS.params.js - filled.
I reconfigured market-BTC_XXX-config.js with configurator, but bot do not accept new config. I check bot log and found that if I change ALLPAIR only then BOT change configs. What I messed up?
« Last Edit: June 26, 2017, 05:49:22 AM by Top0tun »

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #124 on: June 26, 2017, 08:56:55 AM »
I update generator and now all files are filled, but bot do not accept them.
market-BTC_XXX-config.js - was empty,  ALLPAIRS.params.js - filled.
I reconfigured market-BTC_XXX-config.js with configurator, but bot do not accept new config. I check bot log and found that if I change ALLPAIR only then BOT change configs. What I messed up?

The files for each PAIR are in that syntax: market-BTC_XXX-config.js You need to adjust that for your actual market and pair - I do not know what you are running, so I only provide a general file name. Depending on your config those file could look like this:
poloniex-BTC_DOGE-config.js
bittrex-BTC_ETH-config.js
kraken-BTC_LTC-config.js

Please check for such files.


BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline forato

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #125 on: June 26, 2017, 07:46:51 PM »
Is there a way to see all the trades that gunbot made? and maybe the profit?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #126 on: June 27, 2017, 01:25:54 AM »
Is there a way to see all the trades that gunbot made? and maybe the profit?

You can try gmon: https://gunthy.org/index.php?topic=319.0

But the current calculation of the number of trades and the profit are not 100% correct right now. On Bittrex they are off by up to 50%


BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #127 on: June 27, 2017, 01:44:15 PM »
on your latest github update with nodejs v8 there simes to be some bug

Im on new Ubuntu 16.04

it install okay, but after ginit and when it says Yeah coin was started, you do gl and there is no process

here is screenshoot

http://i.imgur.com/hBsIkDg.png

Installed it on other vps with Ubuntu 16.04 and its the same, nothing in gl

Was working fine before
« Last Edit: June 27, 2017, 01:55:43 PM by Xaos »

Offline ajg

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #128 on: June 28, 2017, 07:35:09 AM »
I'm having the same issue as Xaos. gl is empty and attempts at starting anything (even from within ginit) fail. 

I tried your fix of deleting everything in ~/.pm2 and so on, but it doesn't help.  I even Installed Ubuntu Server 16.4 fresh on my laptop again, used your install instructions and it fails.  I'm having to manually start with a script which includes the manual start line "pm2 start ./gunthy-linuxx64 --name "$p" -- $p poloniex" where $p is the pair (in a loop with delay). 

So there may be a problem here.  I'm pretty sure you can reproduce this yourself. 

Thoughts.  Thanks heaps for your work on this, it's quite brilliant by the way. 

Offline kin0

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #129 on: June 28, 2017, 11:50:20 AM »
The script seems to be ok, but i've messed up my permissions on my npm install and it's now not working correctly.

Can anyone give me a link on how to either uninstall and then reinstall npm to correct the permissions?

Offline kin0

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #130 on: June 28, 2017, 12:04:10 PM »
Tried running this on a fresh instance and there seems to be an issue in the script itself?  I get this error during fresh install on Digital Ocean

============================================================
                    GUNBOT 3.3.2 SETUP started

                This will take a few seconds

 ============================================================

 (1/6) Update the base system
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (2/6) Install nodejs 6.x
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (3/6) Install tools
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bash: line 40:  3281 Killed                  npm install -g pm2 yo@1.8.5 generator-gunbot gunbot-monitor > /dev/null 2>&1
 (4/6) Install GUNBOT
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (5/6) Add GUNBOT aliases
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (6/6) Init generator
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 ============================================================

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #131 on: June 28, 2017, 01:15:42 PM »
Works on my fresh DO Ubuntu 16.04.2 x64:




So lets stop using this generator until I have time to investigate and solve that fucking pm2 issue.

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline cryptogolden24k

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #132 on: July 01, 2017, 06:57:30 PM »
Am i missing something? I get a "command not found" error when trying to run this script.... some assistance please

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #133 on: July 01, 2017, 08:31:00 PM »
Can somebody tell me the code to stop all pairs/stop the bot?

I only know how to stop single pairs.

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #134 on: July 02, 2017, 05:27:45 AM »
Can somebody tell me the code to stop all pairs/stop the bot?

I only know how to stop single pairs.

I wrote a couple start/stop scripts detailed here on the forums that does this safely and without generating issues with the exchanges.    That way, you can just do start_bots.sh and stop_bots.sh.

You could use commands like "gstop all" and "gstart all" and "pm2 stop all" and "pm2 start all" but unless they've been modified since I last looked at them, they just start and stop them quickly, which makes places like polo and kraken run into API limits.  So that's why I wrote the scripts.



Cointracking affiliate link (10% discount for you) https://cointracking.info?ref=C937652

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #135 on: July 03, 2017, 12:43:04 AM »
You could use commands like "gstop all" and "gstart all" and "pm2 stop all" and "pm2 start all" but unless they've been modified since I last looked at them, they just start and stop them quickly, which makes places like polo and kraken run into API limits.  So that's why I wrote the scripts.

"gstop all" and "gstart all" are still the same and will cause API errors on Kraken and Poloniex. I added a link to your scripts to the first post of this thread.
Thanks cw!


BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #136 on: July 04, 2017, 02:32:18 AM »
Can somebody tell me the code to stop all pairs/stop the bot?

I only know how to stop single pairs.

I wrote a couple start/stop scripts detailed here on the forums that does this safely and without generating issues with the exchanges.    That way, you can just do start_bots.sh and stop_bots.sh.

You could use commands like "gstop all" and "gstart all" and "pm2 stop all" and "pm2 start all" but unless they've been modified since I last looked at them, they just start and stop them quickly, which makes places like polo and kraken run into API limits.  So that's why I wrote the scripts.

Would you explain me how to paste the code correctly?

I connect via ssh to my server and just paste your code, right?

When I do, I see this:


What am I doing wrong?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #137 on: July 04, 2017, 09:17:29 AM »
What am I doing wrong?

Nothing, you are doing it 100% correct.
Just hit ENTER after the command "chmod +x ./start_bots.sh" and you are able to run this:

Code: [Select]
./start_bots.sh


You are creating this script in your home directory, so you need to be in your home directory to run this script. In case it does not work, do another step before:

Code: [Select]
cd
./start_bots.sh


BK

Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #138 on: July 04, 2017, 06:48:49 PM »
It's working now! I think I did it like this yesterday, and when I tried to use .stop_bots.sh it showed "command not found" (if I remember right).

However, thank you again for your help! And also thanks for your script cw!

I have another question. Is it possible to edit the configs of all pairs at once. When I use 'ginit' I can edit all pairs, but I can't edit settings of 'POLONIEX_VWA_1_INTERVAL' / 'POLONIEX_VWA_2_INTERVAL' or 'MAX_LATEST_PRICES' (for example).

Hope this question wasn't asked before, but I haven't found a solution.

Offline toasthead

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #139 on: July 04, 2017, 09:34:56 PM »
Similar to the last question.

If we edit ALLPAIRS or the coin configs is the hot config load working from the gunbot directory?

Also I noticed after ginit or gadd the DEFAULT_CURRENCY_PAIRY is BTC_ETH that doesn't seem correct does it?
« Last Edit: July 04, 2017, 09:55:08 PM by toasthead »