GithubHelp home page GithubHelp logo

h256 / gunbot-monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from beerk0in/gunbot-monitor

0.0 2.0 1.0 2.03 MB

Monitors your GUNBOTs

License: MIT License

JavaScript 74.40% HTML 1.74% Vue 23.86%

gunbot-monitor's Introduction

gunbot-monitor with websocket

gmon - An application to monitor your Gunbot

gmon screenshot

I needed something to display my gunbot monitor without going down into my basement or VNC to my server. So I created this litte thing to host a simple webpage that displays most of gunbot-monitor information in a webpage.

It's a working solution with a fixed-port aproach. This will probably not be maintained but I wanted to offer it here for everyone :)

Modifications to the original repo:

*** new option ***

    -w, --ws-port   Port for the WebSocket-Server

usage:

  • the webserver will run on port 3090 and websocket will run on port 3088
  • change host in ./web/public/index.html according to the host you would use...
  • shell into ./src and run node index followed by your parameters you would set.
  • the developer VueJS application ist located in ./web/gunmon-vue

If you like this repo, support me by sending a tip to 191hR9AftcrGH2Vb29ogPBoUjFowsvAMrk (BTC) and of course, if you want to support Gunbot-Monitor, send a tip to BeerK0in's BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Original Readme

๐Ÿ‘ Basics

๐Ÿšจ gmon 1.x will only work with Gunbot v9! ๐Ÿšจ

  • gmon works best on Unix based systems (Linux and OSX)
  • gmon requires Gunbot v9, Node.js 6 or higher and npm
  • gmon uses up to 100MB memory
  • you should not use gmon if your server has less than 230MB available free memory
  • you need a wide window / screen
  • gmon and it's creator are not responsible/liable for wrong numbers or wrong calculations
  • use at own risk

๐Ÿ’ป Installation

You need to install Gunbot-Monitor on the same machine as Gunbot.

This is a Node.js command line app available through the npm registry.

Before installing, download and install Node.js. Node.js 6.11.2 or higher is required.

Installation is done using the npm install -g command:

$ npm install -g gunbot-monitor

๐Ÿ’Ž Update

Use npm to update:

$ npm uninstall -g gunbot-monitor && npm install -g gunbot-monitor

๐Ÿ“‹ Usage

To start gmon, go to the folder your Gunbot is installed (cd /path/to/gunbot) and run this command:

$ gmon [options]

Options

    -h, --help                               Output usage information
    -v, --version                            Output the version number
    -p, --path <path>                        Path to the GUNBOT folder. Separate multiple paths with ":" (like: -p /path1:/path2). [Default: current folder]
    -N, --path-name <name>                   Optional name for each path to the GUNBOT folder(s). Separate multiple path names with ":" (like: -N Kraken_Bot:Proxy_Mega_Bot). [Default: No path name]
    -c, --compact [groupSize]                Do not draw row lines. Optional set the number of rows after which a line is drawn. [Default: 0]
    -s, --small                              Reduce columns for small screens
    -d, --digits <digits>                    Amount of digits for all numbers. Min = 0, max = 10. [Default: 4]
    -r, --refresh <seconds>                  Seconds between table refresh. Min = 1, max = 600. [Default: 60]
    -m, --markets <markets>                  Filter of markets to show. Separate multiple markets with ":" (like: -m poloniex:kraken) [Default: all]
    -P, --profit                             Use to activate the parsing of the profit. NOT WORKING CORRECTLY!
    -H, --hide-inactive <hours>              Hides trading pairs which last log entry is older than given hours. Min = 1, max = 854400. [Default: 720]
    -C, --connections-check-delay <seconds>  Seconds between netstats checks. Higher numbers result in more inaccurate statistics but reduce cpu usage. Min = 1, max = 600. [Default: 1]

Path option -p

To run gmon outside of your Gunbot folder, use the -p option to specify the path where Gunbot is installed:

$ gmon -p /path/to/gunbot

If you have multiple Gunbots running, you can use the -p option to specify all paths to your Gunbots:

$ gmon -p /path/to/AAA_bot:/path/to/BBB_bot

Path name option -N

When using -p option you can set names for your different Gunbots:

$ gmon -N Kraken-Bot-tssl:Bittrex-emo

Compact mode -c

With this option, gmon will not draw row lines to separate the rows:

$ gmon -c

Optional set the number of rows after which a line should be drawn to have a little visual guide:

$ gmon -c 4

Small mode -s

With this option, gmon will not draw the columns OO?, # Coins, 1 6 h d + to support smaller screens:

$ gmon -s

Digits option -d

When using -d option you can set the number of displayed digits. Set to a lower number on small screens:

$ gmon -d 3

Refresh option -r

This option allows you to set the time in seconds how long gmon waits until it checks all values again.

โšก๏ธ Please check your server when setting -r to low numbers! โšก๏ธ Faster updates mean more work for your server.

$ gmon -r 90

Market filter -m

With option -m you are able to define specific markets you want to see in the output:

$ gmon -m kraken:bitfinex # This will only show pairs on those exchanges

Profit option -P

Now working at the moment.

Hide inactive pairs -H

gmon will show all trading pairs inside a folder, as long as there is a state.json file. If you disable a pair you can set this option -H to hide inactive trading pairs when there last update is older than the set number.

$ gmon -H 2 

Connections check delay -C

Set the time interval in seconds how often the number of open connections to the exchanges should be checked. Higher numbers result in more inaccurate statistics but reduce cpu usage.

$ gmon -C 10 

๐Ÿค” How to read gmon's output

Column Description
Name Market name and trading pair name
Str Buy and sell strategy
LL Last Log - seconds since the last log update of this trading pair
OO? Open Order? - says "yes" if there is an open order on the market
# Coins Amount of coins of the quote currency
in BTC Value of the quote currency in BTC (or other base currency)
Diff since buy Indicator how much the value of the holding quote currency has changed in BTC (or other base currency)
Buy/Bought If numbers are white: Price which needs to be reached till the bot will buy quote currency (if # Coins == 0)
If numbers are yellow: Price the bot paid to buy the quote currency"
Sell Price which needs to be reached till the bot will sell the holding quote currency (if # Coins > 0)
Last Price Current market price for the quote currency
Price diff Difference between Last Price and the Buy/Bought if waiting to buy
or difference between Last Price and the Sell if waiting to sell.
If something is not correct (the log does not contain all needed prices) it shows an error hint
# Buys Number of total buys - How often did the bot buy this quote currency and time since the last buy
1 6 h d + Number of buys in the last 1 hour / 6 hours / 12 hours / 24 hours / more than 24 hours.
# Sells Number of total sells - How often did the bot sell this quote currency and time since the last sell
1 6 h d + Number of sells in the last 1 hour / 6 hours / 12 hours / 24 hours / more than 24 hours

๐Ÿ˜Ž Windows issues

Do yourself a favor and use a console emulator like cmder.

โœจ Wishlist

BeerK0in#15

๐Ÿบ Support & Tips

You like gmon and it helps you earning money?

License

MIT ยฉ BeerK0in - www.beer-crypto.com

gunbot-monitor's People

Contributors

beerk0in avatar h256 avatar jbogatay avatar tosvenson avatar

Watchers

 avatar  avatar

Forkers

geeks121

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.