Git Product home page Git Product logo

generator-gunbot's Introduction

generator-gunbot NPM version Build Status Dependency Status Coverage percentage

Setup and manage GUNBOT 3.3 on Linux.

If you want to setup a brand new Debian or Ubuntu VPS to run GUNBOT, just log into your new VPS as root and run this install script:

cd
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install.sh | bash -- && exec bash

After the setup run:

gcd
ginit

That script will

  • update the system (apt upgrade),
  • install node 6.x,
  • install required tools (yo, pm2, unzip),
  • install the GUNBOT 3.3,
  • creates some handy aliases,
  • install this generator-gunbot

If you want to create a VPS at DigitalOcean, you can use this affiliate link: get $10 credit at DigitalOcean

Aliases

The installer also sets up some aliases to do more with less. :)

  • gcd: Go to the folder GUNBOT is installed
  • gadd: Use the generator to add a new pair (*)
  • gl: Get a list of all running GUNBOTs
  • glog [botname or number]: Shows the log of the selected bot (use gl to get name)
  • gstop [botname or number]: Stops a running bot (use gl to get name)
  • gstart [botname or number]: Starts a stopped bot (use gl to get name)

(*)For now gadd will use the same settings as defined in the first run of the generator. A next version will allow you to set specific strategies for new trade pairs.

Updates

To update follow these steps:

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

(*) The conflict could happen if you hav 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:

conflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? (Ynaxdh)

If you just want to use the generator on any OS with installed GUNBOT 3.3 Core Edition, read on.

Installation

First, install Yeoman, pm2 and generator-gunbot using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g pm2
npm install -g generator-gunbot

Usage

To init GUNBOT:

cd /path/to/gunbot
yo gunbot init

To add a new currency to GUNBOT:

yo gunbot add

Limits

This initial version of the generator-gunbot has some limitations:

  • Only GUNBOT 3.3 support
  • Only Poloniex support
  • Only BTC to XXX support

License

MIT © BeerK0in

generator-gunbot's People

Contributors

beerk0in avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.