Username: Password:

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

Offline imwmi

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #100 on: June 15, 2017, 01:24:12 PM »
Looking for documentation on how to update the individual config files (per coin), if possible.

Not possible with the current version of the generator. You need to manually edit the config files. But keep in mind: the config in ALLPAIRS overwrites the config in the specific PAIR config. So you need to delete the parameter you want to be different among your pairs from ALLPAIRS and set it in every PAIR config.

BK

That make senses. How do I go about modifying every pairs configuration file separately?

Not familiar with doing that, and looking for step by step or documentation to help me do that piece.

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 #101 on: June 15, 2017, 10:59:59 PM »
That make senses. How do I go about modifying every pairs configuration file separately?

Not familiar with doing that, and looking for step by step or documentation to help me do that piece.

Open each file with an editor like nano:

Code: [Select]
gcd
nano poloniex-BTC_XXX-config.js

Use the arrow keys to navigate in that file and make changes.
To save press "Ctrl + x" then "y" then "Enter".


BK
« Last Edit: June 22, 2017, 06:54:21 AM by beer-k0in »
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline imwmi

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #102 on: June 15, 2017, 11:21:54 PM »
That make senses. How do I go about modifying every pairs configuration file separately?

Not familiar with doing that, and looking for step by step or documentation to help me do that piece.

Open each file with an editor like nano:

Code: [Select]
cdg <--- this is actually gcd
nano poloniex-BTC_XXX-config.js

Use the arrow keys to navigate in that file and make changes.
To save press "Ctrl + x" then "y" then "Enter".


BK

Thank you kindly BK -

Next question is I'm planning on moving my GunBot fully over to linux, and before doing so want to make sure everything is running well. At this moment both are running at the same time. Before I shutdown my Windows bot my concerns are the following:

    LINUX Instance (New)
    • Monitor: I see no activity under # Buys, # Sells, Errors (most surprising) with uptime of 15h
    • On GL I see no cpu % gains - has been 0 for uptime of 15h

    I have attached images for reference, including monitor from both to show discrepancies on Error (not taking into consideration expected profit differences based on start times).

    Would like to know if this is expected, or what I can do to get those data points running live.

*UPDATE*

After speaking with BeerK0in directly, was able to get answers for my questions. So here they are for those searching for something similar:

LINUX Instance (New)
  • Monitor: I see no activity under # Buys, # Sells, Errors (most surprising) with uptime of 15h
  • this was because I did not include "--show-all-errors" in my gmon statement
  • On GL I see no cpu % gains - has been 0 for uptime of 15h
  • according to BK, the cpu demands are so low, negligible they won't appear - however the bot is running, as can be seen by MB memory allotment.
[/list]
« Last Edit: June 16, 2017, 07:10:08 AM by imwmi »

Offline hbtcc

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #103 on: June 17, 2017, 07:22:25 AM »
Thank you for the tutorial and tools.
I installed GunBot 3.3.2 to VPS linux server using your method and also installed gunbot-monitor.

Q:
I have a question about editing "ALLPAIRS-params.js" file.
Currently I edit the file on my desktop computer using notepad++ and copy it to the Gunbot folder on linux server with WinSCP.
I wonder if changing settings in the "ALLPAIRS-params.js" file will be applied to all running pairs automatically,
or I have to run "ginit" then press "n" on "Overwrite ALLPAIRS-params.js?" question each time I edit the file.

Offline Defpro

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #104 on: June 18, 2017, 01:05:58 PM »
Hi, it trades just fine with eth and ltc. Bur sc and other pairs gets 422 error when the price is right.  What to do?
-Deffy

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 #105 on: June 18, 2017, 04:06:09 PM »
I wonder if changing settings in the "ALLPAIRS-params.js" file will be applied to all running pairs automatically

Yes, no need for running ginit.



Hi, it trades just fine with eth and ltc. Bur sc and other pairs gets 422 error when the price is right.  What to do?

Nothing, ignore 422 and wait for the next Gunbot version. Everyone has massive 422 errors this time.

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 #106 on: June 19, 2017, 03:49:15 PM »
Thank you for this tutorial beer-k0in! I will support you with a tip.

Everything works fine and my Gunbot made his first trades.

Can you say me if there is a limit for Gunbot, or is it possible to trade ~40 pairs with 4GB RAM? And why do you say 2GB for ~17 pairs? Is it necessary to have a buffer? Because if one pair uses less than 100MB, it should be possible to trade ~20 pairs with 2GB, or not?

I also have another question. I haven't installed the Windows version because I prefer Linux, but are there any advantages for the Windows version? Maybe more settings or something like this?

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 #107 on: June 20, 2017, 07:07:20 AM »
Can you say me if there is a limit for Gunbot, or is it possible to trade ~40 pairs with 4GB RAM? And why do you say 2GB for ~17 pairs? Is it necessary to have a buffer? Because if one pair uses less than 100MB, it should be possible to trade ~20 pairs with 2GB, or not?

Your core system needs also some of the RAM.
Example from a fresh VPS with 512 MB RAM:
Code: [Select]
# free -h
              total        used        free      shared  buff/cache   available
Mem:           488M         58M        206M        8.3M        224M        399M

Only 399 MB are available. If you start a Gunbot, it needs more than 120 MB RAM - later this is reduced to ~85MB.


I also have another question. I haven't installed the Windows version because I prefer Linux, but are there any advantages for the Windows version? Maybe more settings or something like this?

No. All Versions of Gunbot are using the same core code to work. Only the GUI is different.

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

Offline hbtcc

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #108 on: June 20, 2017, 07:21:28 AM »
I wonder if changing settings in the "ALLPAIRS-params.js" file will be applied to all running pairs automatically

Yes, no need for running ginit.




Thank you for the reply.
I'm running GunBot for few days and have questions.

Q1:
BTC-XXX-log.txt files are becoming bigger (3~5mb per each).
I wonder if it's no problem to replace them to clean one occasionally.

Q2:
I'm also using your Gunbot Monitor with 'gmon -c -s -P' command.
I wonder if the profit shown at the bottom right side is the final profit after all revenue, loss and fee.
Otherwise I wonder how to calculate accurate final profit.
« Last Edit: June 20, 2017, 07:24:12 AM by hbtcc »

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #109 on: June 20, 2017, 07:37:02 AM »
No. All Versions of Gunbot are using the same core code to work. Only the GUI is different.

I phrased my question wrong. I mean, how can I change the settings of Gunbot on my Linux VPS?

For example, how can I adjust the EMA1/EMA2 settings?

If I choose a pair and use Bollinger Band, I can only modify the percentage for buy/sell of the Bollinger band.

And thanks for the explanation concerning the RAM.

Offline flashdel

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #110 on: June 20, 2017, 10:49:52 AM »
Is it possible to set the max amount per trade for all the pairs i got to x.xxx without reconfiguring every single bot?

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 #111 on: June 20, 2017, 02:50:06 PM »
Q1:
BTC-XXX-log.txt files are becoming bigger (3~5mb per each).
I wonder if it's no problem to replace them to clean one occasionally.

Q2:
I'm also using your Gunbot Monitor with 'gmon -c -s -P' command.
I wonder if the profit shown at the bottom right side is the final profit after all revenue, loss and fee.
Otherwise I wonder how to calculate accurate final profit.

A1:
You can delete the logs like you want. Mine are > 100MB.

A2:
Profit and number of Trades is not accurate in the current version. Please ignore it.
Log into the markets you are trading on and check your trades there.



Is it possible to set the max amount per trade for all the pairs i got to x.xxx without reconfiguring every single bot?

Open ALLPAIRS-params.js and set the trading limit there.

If you ONLY want to set the trading limit for all pairs, your ALLPAIRS-params.js would look like this:

Code: [Select]
var config = {
    BTC_TRADING_LIMIT: 0.00123,
};

module.exports = config;

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

Offline infebious

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #112 on: June 21, 2017, 12:04:06 AM »
I installed it on Ubuntu and it was running fine last night, today it crashed.  When I try to restart ginit I get this error:

? Select the trade pair currencies you want to automatically start right now: SC
 conflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? overwrite
    force ALLPAIRS-params.js
   create poloniex-BTC_SC-config.js
ERROR! - There was an error starting GUNBOT for BTC_SC:
1

I'm just trying to start it w/ 1 pair.

EDIT:

Tried this and it seems to be working now:

The nasty one

Sometimes the PM2 God Deamon got detached from your (root-)user and you will see an empty list if you enter 'gl' BUT if you run 'pgrep -f BTC_XXX' you will see a id a result.

So the Gunbot is running but pm2 does not want to see it.

You need to kill the PM2 God Deamon, and remove the content in ~/.pm2/:

Code: [Select]
pgrep -f PM2 | xargs kill -9

Wait like 2 to 5 min till all Gunbots also stopped.
Check if there are running Gunbots
Code: [Select]
pgrep -f gun
If the dont stop, also kill them
Code: [Select]
pgrep -f gun | xargs kill -9

Now remove the content of ~/.pm2/
Code: [Select]
rm -r ~/.pm2/*

And run run 'ginit' again.
« Last Edit: June 21, 2017, 12:11:39 AM by infebious »

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 #113 on: June 21, 2017, 08:33:27 AM »
I installed it on Ubuntu and it was running fine last night, today it crashed.  When I try to restart ginit I get this error:
[...]
ERROR! - There was an error starting GUNBOT for BTC_SC:
1

Glad you got it running again.


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

Offline DiCE1904

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #114 on: June 22, 2017, 02:55:15 AM »
Small dono sent your way, cant wait for the bittrex update  ;D

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #115 on: June 24, 2017, 05:11:13 AM »
What does this message mean?

Quote
? Overwrite poloniex-BTC_BTS-config.js? overwrite
    force poloniex-BTC_BTS-config.js
 conflict poloniex-BTC_CLAM-config.js

I edited all pairs via 'ginit' and tried to overwrite the new settings. When I check a pair now, it has the new settings and 'gl' shows all pairs online. Should I do something now because of the conflict?

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 #116 on: June 24, 2017, 06:24:51 PM »
Small dono sent your way, cant wait for the bittrex update  ;D

Latest version supports all markets now. But some coins in Bittrex are missing. Will update in ~16h



What does this message mean?

Means that file will be changed and wants your confirmation to do so.

Gunbot recognizes changed config files. So you are good to go.


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

Offline kazinajc

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #117 on: June 24, 2017, 06:30:29 PM »
Hey everyone.
I need a bit of help with my gunbot initial startup.

I'm using Ubuntu 17.04, 64-bit, on Contabo web service.  Memory: 6GB, Processor: Intel Xeon CPU E5-2620 v 2, 2.1GHz x 2, Disk 500GB.

- sudo apt-get update and - sudo apt-get upgrade
is up to date and i still get an error while running beer-k0in's script as root.

Picture of error is attached. Does anyone know what could be the reason?

Thanks, kazinajc

Offline Berserk

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #118 on: June 24, 2017, 07:57:18 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.
« Last Edit: June 24, 2017, 08:05:49 PM by Berserk »

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 #119 on: June 25, 2017, 10:15:46 AM »
I need a bit of help with my gunbot initial startup.

Try this script. It prints out everything. Maybe you get a hint what goes wrong.

Code: [Select]
curl -sL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install-loud.sh | bash -- && exec bash


Node.js 7.x is nearly deprecied, not supported on last ubuntu and debian stretch.

Debian 9 does not support Node.js 7.x. But Ubuntu 17.04. does.

Anyways, I will update the script to the new Node.js 8.x soon.


BK



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