Username: Password:

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

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #40 on: May 25, 2017, 05:28:00 AM »
How to start it on Bittrex? I already put api keys in config. Then what?

Can manually start it on bittrex?
« Last Edit: May 25, 2017, 05:30:19 AM by Xaos »

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #41 on: May 25, 2017, 08:01:06 AM »
How to start it on Bittrex? I already put api keys in config. Then what?

Can manually start it on bittrex?

The generator only supports Poloniex at this moment.

You can always go the manual way and set the configs manually and than use this to start a bot.
Code: [Select]
pm2 start ./gunthy-linuxx64 --name BTC_XXX -- BTC_XXX bittrex
But do not use 'ginit' or 'gadd', bacause it will remove your bittrex or kraken API credentials from ALLPAIRS.
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #42 on: May 25, 2017, 02:28:00 PM »
thanks

one more question

how to clean this list?



Offline redindian

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #43 on: May 25, 2017, 02:42:00 PM »
Thanks for the updated installer!

I was right to fix it myself manually then. Are there any updated defaults I should be aware off? I only updated the gunthylinuxx86 and restarted everything.

Offline dj_crypto

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #44 on: May 25, 2017, 07:53:08 PM »
Very good mate.

Is there a way to start pairs with different API keys? I do not use the same API for all my pairs. Can I also import my own config files and how would I start.

Really appriciate your work. When I get it working I will send you a nice donation.

dj_crypto

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #45 on: May 25, 2017, 09:40:55 PM »
how to clean this list?

Code: [Select]
pm2 delete all


Are there any updated defaults I should be aware off? I only updated the gunthylinuxx86 and restarted everything.

No, I don't think so. Just updating the binary file(s) should do the job. So I think you good to go. Actually I used the update script on my to main accounts and all it does is replacing the binarys, and everything runs like it should be.



Is there a way to start pairs with different API keys? I do not use the same API for all my pairs.

Actually not without editing your configs manually. I started this as a option for people who just started using GUNBOT and just want to get it running - as this were also my first steps into it.
I do also use multiple API-Keys now and ended up in having 2 Server. But I'll add this use case to my list of features for the next version.

Can I also import my own config files and how would I start.

Ok, it could work that way:
1. You create all the config files with 'ginit' and set one of your API keys there.
2. You do not start any trade pair.
3. Now all your settings are in ALLPAIR and all of your selected pair configs are empty.
4. You can now copy your own config files and replace the created ones or edit the created files and just add the different settings you want for that pair compared to ALLPAIRS.
5. At least add the API key and secret to the config files of the trade pairs which you want to use another key than in ALLPAIRS.
6. When you done, run 'ginit' again, in the last step, select all pairs you want to start and than press 'n' on every conflict the generator is presenting you. So let it not overwrite your files.

Now ginit should start all of your bots. I did not try that, but I think it will work that way. :)
If not, do all of the abouve staps, including step 5 but than run
Code: [Select]
pm2 start ./gunthy-linuxx64 --name BTC_XXX -- BTC_XXX poloniexfor every pair you want to start. delay every start by ~10 seconds.

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

Offline mst

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #46 on: May 26, 2017, 07:31:07 PM »
I am getting this errors. What I am doing wrong?

Code: [Select]
ubuntu@ip-172-31-3-90:~$ curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install.sh | bash -- && exec bash

 ============================================================
                    GUNBOT 3.2 SETUP started

                This will take a few seconds

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

 (1/6) Update the base system
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (2/6) Install nodejs 7.x
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (3/6) Install tools
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (4/6) Install GUNBOT
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bash: line 47: unzip: command not found
mkdir: cannot create directory ‘/opt/GUNBOT_v3.2_GUI_edition_all_CPU’: Permission denied
cp: cannot stat ‘/opt/unzip-tmp/gunthy-*’: No such file or directory
ln: failed to create symbolic link ‘/opt/gunbot’: Permission denied
rm: cannot remove ‘/opt/GUNBOT_v3.2_GUI_edition_all_CPU.zip’: No such file or directory
rm: cannot remove ‘/opt/unzip-tmp’: No such file or directory
chmod: cannot access ‘/opt/gunbot/gunthy-*’: No such file or directory
 (5/6) Add GUNBOT aliases
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (6/6) Init generator
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
chmod: changing permissions of ‘/root’: Operation not permitted
chmod: cannot access ‘/opt/gunbot’: No such file or directory
mkdir: cannot create directory ‘/root’: Permission denied
bash: line 90: /root/.config/configstore/insight-yo.json: Permission denied
chmod: cannot access ‘/root/.config’: Permission denied
chmod: cannot access ‘/root/.config/configstore’: Permission denied
chmod: cannot access ‘/root/.config/configstore/*’: Permission denied
mkdir: cannot create directory ‘/root’: Permission denied
bash: line 102: /root/.pm2/touch: Permission denied
chmod: cannot access ‘/root/.pm2’: Permission denied
chmod: cannot access ‘/root/.pm2/*’: Permission denied

 ============================================================
                   GUNBOT SETUP complete!

          Please run this command to init the GUNBOT:
                           ginit

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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #47 on: May 26, 2017, 07:34:53 PM »
I am getting this errors. What I am doing wrong?

For the current version of the generator, you need to be root user.

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

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #48 on: May 31, 2017, 06:02:01 PM »
IC its updated to v3.3 now :)

thx

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #49 on: May 31, 2017, 07:57:58 PM »
Update for version 3.3

To update follow these steps:

1. Login to your server.
2. Run this update script
Code: [Select]
cd
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/update.sh | bash --
3. Run 'ginit' again to start all bots with delay
Code: [Select]
gcd
ginit
4. Press ENTER for every question (it will use your last settings)
5. [optional] Press ENTER on the conflict of ALLPAIRS (*)
6. Wait till all bots are started.
7. [optional] If you have changed some configs manually, please copy them from the backup folder back into the gunbot folder:
Code: [Select]
cp /opt/gunbot-backup-<NUMBER>/poloniex-BTC_XXX-config.js /opt/gunbot/8. Controll with 'gl' or 'gmon' if all bots are running. If not enter 'gstart BTC_XXX' to start the stopped bot



(*) The conflict could happen if you have an older version of the generator, because the default settings have changed a bit. In that case it is very likely you see this question. Just press ENTER:

Code: [Select]
conflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? (Ynaxdh)


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

Offline cryptico

  • Rookie
  • *
  • Posts: 7
  • GUNBOT Official Reseller
    • View Profile
    • tradewithgunbot.shop
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #50 on: June 01, 2017, 02:07:09 AM »
This is very nice - my hat's off to you.  I decided to give this a try, even though I have my own servers, equipment and typically do everything by hand, and I'm a big fan of GNU screen, so didn't know what could be better than it.  Besides, why would I pay for something in the cloud for something I have "for free" at home?

However, I'm always looking to learn new things, and I've seen people talking about "pm2" and wondered what it was all about.  Plus, even though what I have at home is "free", $10/mo isn't too bad given what I make with gunbot, and there is the convenience factor of better 24x7 uptime.  Then again, on one server at home, I'm able to run 50 pairs and the box is still only at 5% CPU (against three exchanges)... so we'll have to see and compare later about the costs... but that's a different story.

So I went through the installation instructions and they were perfect.  I'm extremely impressed by your startup script.  Easy to use, easy to understand, and fast response.  Good job.

I now understand better what pm2 does - it obviates the need for screen.  While I see the benefits that has... I also see that I lose some control that screen gives me. For one, I no longer see the console output I had, and I see to lose the direct interaction with the STDIN/STDOUT (but I may just be missing that - or maybe that's what "glog" does....)

Once I realized how incredibly valuable your startup scripts were, I had to add in my multitail pieces.... since pm2 takes care of the "tee" and "screen" parts! (written up in this post: https://gunthy.org/index.php?topic=261.msg1164#msg1164)

So, if you install multitail:
Code: [Select]
root@gunny:/opt/gunbot# sudo apt install multitail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  multitail
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 121 kB of archives.
After this operation, 322 kB of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu xenial/universe amd64 multitail amd64 6.4.2-1build1 [121 kB]
Fetched 121 kB in 0s (1,258 kB/s)
Selecting previously unselected package multitail.
(Reading database ... 62956 files and directories currently installed.)
Preparing to unpack .../multitail_6.4.2-1build1_amd64.deb ...
Unpacking multitail (6.4.2-1build1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up multitail (6.4.2-1build1) ...

Create a file called "multitail.conf" in the /opt/gunbot directory:
Code: [Select]
#include:/etc/multitail.conf
#check_mail:0
colorscheme:gunbot
cs_re:red,magenta:< prBuy
cs_re:red,white:<= prBuy
cs_re:red,white:>= prSell
cs_re:red,yellow:> prSell
cs_re:red,yellow:Sell order placed
cs_re:red,yellow:.*ORDER INFORMATION.*
cs_re:red,yellow:.*profit.*
cs_re:white:.*MinPriceToSell.*
cs_re:white:.*MaxPriceToBuy.*
cs_re:white:.*MaxPriceToSell.*
cs_re:white:.*MinPriceToBuy.*
cs_re:yellow:^Direction:\s+\d+
cs_re:white,blue:Activating hot reconfig...
cs_re:white,red:INVALID LICENSE
cs_re:white,red:Rate limit exceeded
cs_re:white,red:Not enough BTC
cs_re:red:iInvalid nonce\!*
cs_re:red:ESOCKETTIMEDOUT\!*
cs_re:red:returned error\!*
cs_re:red:Error\!*
cs_re:red:.*failed.*
cs_re:red:.*no altcoins.*
cs_re:red:statusCode (.*)
cs_re:magenta:.*buy.*
cs_re:cyan:Open orders
cs_re:cyan:.*sell.*
cs_re:red:falls\syes
cs_re:green:grows\syes
cs_re:green:falls\sno
cs_re:yellow:Has order:.*
cs_re:yellow:.*have altcoins.*
cs_re:white:\:\:.*

Create a file called "stat.sh" in same directory:
Code: [Select]
#!/bin/sh
multitail -Z red,black,inverse --config multitail.conf -CS gunbot -x "%m %u@%h %f (%t) [%l]" -b 4 -s 2 -m 0 -n 100 \
   --mark-interval 200 \
        -Ev "before to buy" \
        -Ev "Cannot sell" \
        -Ev "price to buy" \
        -Ev "MaxPriceToBuy" \
        -Ev "Last price <=" \
        -Ev "Last price >=" \
        -Ev "Last price >" \
        -Ev "Last price >" \
        -Ev "price  grows \(" \
        -Ev "price  falls \(" \
        -Ev "^need " \
        -Ev "^Callback:" \
        -Ev "no altcoins" \
        -Ev "Altcoin Balance" \
        -Ev "\+\+\+"\
        -Ev "\[\]"\
        -Ev "-------" \
        -Ev "is too high" \
        -Ev "price is too low" \
        -Ev "price too high" \
        -Ev "waiting to sell" \
        -Ev "Creating market client" \
        -Ev "Loading config" \
        -Ev "Not supergun:" \
        -Ev "Supergun: " \
        -Ev "avCoins" \
        -Ev "CANCEL sell orders" \
        -Ev "CANCEL buy orders" \
        -Ev "SEll on start" \
        -Ev "^$" \
        -Ev "^\s+\d+\.\d+$" \
        -Ev "No order" \
        -Ev ":::" \
        -Ev "Error\!\!\! statusCode 422" \
        -Ev "Will repeat" \
        -Ev "cycle" \
        -Ev "No basePrice" \
        -Ev "need_" \
        -Ev "Response:" \
        -Ev "Bot responsed" \
        -Ev "next delay" \
        -Ev "^\*" \
        -Ev "\*\*" \
        /root/.pm2/logs/*-out*.log

Make the file executable:
Code: [Select]
root@gunny:/opt/gunbot# chmod +x ./stat.sh

and run the stats page...

Code: [Select]
./stat.sh

Then you can get a single page viewer of all the log files ... BUT FILTERED AND COLORED so you can watch them, but only the interesting parts.  I can't see them very easily right now because evidently I have an invalid license... :) so the screenshot isn't very useful.  Also, I'm composing this on my laptop right now, so the monitor isn't very large, so each window is a bit smaller than normal.  Typically you'd see a few more lines of each bot instance.



If there's a multitail-like console built-in to pm2, and I missed it, let me know.  If you read the link to my post above, I go into great detail about why I put together my multitail console and the ideas I have for the next one.

All in all, I have to say - great work!


Also, FYI - I started 16 pairs on a 2GB memory / 40GB / SFO2 Ubuntu 16.04.2 x64 unit and CPU is pegged at 100% - just wanted to pass that along to others.



Hi, nice job bro! looks fantastic...

I want to have that monitor working on my VPS, but i have this problem:
Quote
The following problem occured:
-----------------------------
line 35 of file 'multitail.conf' is too long!
Terminated
TradewithGunbot.shop | GUNBOT Official Reseller

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #51 on: June 01, 2017, 08:13:19 AM »
I want to have that monitor working on my VPS, but i have this problem

Please use this thread to get help about Cryptowally's gunbot linux console:
https://gunthy.org/index.php?topic=261

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 in less than 5 minutes (linux)
« Reply #52 on: June 01, 2017, 12:01:09 PM »
How to change bot settings without stopping bot and loosing it data. I want lower BB

I edited All pakrs file but think it didnt update it.


Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #53 on: June 01, 2017, 01:02:01 PM »
How to change bot settings without stopping bot and loosing it data. I want lower BB

I edited All pakrs file but think it didnt update it.

It looks like the config update does only work with the configs of the pair, not with ALLPAIRS :(

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 in less than 5 minutes (linux)
« Reply #54 on: June 01, 2017, 05:04:55 PM »
Yeh
Thx

Offline misc

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #55 on: June 02, 2017, 09:33:04 PM »
Thank you for your efforts, it works great! Is it possible to start a second instance, let's say with another API ?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #56 on: June 02, 2017, 09:46:12 PM »
Thank you for your efforts, it works great! Is it possible to start a second instance, let's say with another API ?

Not with that version, no. But I'm working on v2 ;)

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

Offline misc

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #57 on: June 02, 2017, 09:48:33 PM »
 
Thank you for your efforts, it works great! Is it possible to start a second instance, let's say with another API ?

Not with that version, no. But I'm working on v2 ;)

BK
Wow, let me know if you need a beta tester  :D

Offline FgTeaMBR

  • Rookie
  • *
  • Posts: 6
  • BR Hue Here
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #58 on: June 03, 2017, 12:46:43 PM »
Hey @beer-k0in you can post a script to install only v3.2 ?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #59 on: June 03, 2017, 05:24:51 PM »
Hey @beer-k0in you can post a script to install only v3.2 ?

Old version: https://github.com/BeerK0in/generator-gunbot/blob/gunbot-v3-2/install.sh

So it would be:
Code: [Select]
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/gunbot-v3-2/install.sh | bash -- && exec bash
BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT