Coder Social home page Coder Social logo

jaggedsoft / adamant-tradebot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adamant-im/adamant-tradebot

0.0 0.0 0.0 1.46 MB

Bot for trading and making fake volume (market making) on crypto exchanges. Managed in ADAMANT chat.

JavaScript 100.00%

adamant-tradebot's Introduction

ADAMANT Trading & Market making bot is a software that allows to run trades on crypto exchanges, make fake volume (wash trading) and build live-like dynamic order book.

  • In Market making mode, the bot places orders and execute them by himself, making a trade volume; and builds live-like dynamic order book.
  • Trading is a mode when bot run orders according to some strategy. It can be profitable or not. Unavailable now—use Zenbot.

Trade bots work in ADAMANT Messenger chats directly.

Market Making & OrderBook Building

Features:

  • Managed with your commands using ADAMANT Messenger
  • Easy to install and configure
  • Free and open source
  • Fill order books
  • Place buy and sell limit or market orders
  • Market making
  • Dynamic order book
  • Stores and displays statistics

Supported exchanges (more in progress):

Usage

Available commands: ask a bot with /help command. Read more how to install and use the bot: Crypto trading & Market making bot in ADAMANT.

Installation

Requirements

Setup

su - adamant
git clone https://github.com/Adamant-im/adamant-tradebot
cd ./adamant-tradebot
npm i

Pre-launch tuning

nano config.json

Parameters:

  • exchange Exchange to work with. Available values see above. Case insensitive, obligatory.
  • pair Pair to with on the exchange. Obligatory.
  • coin1Decimals Meaningful decimals for output of coin1 amounts. Default is 8.
  • coin2Decimals Meaningful decimals for output of coin2 amounts. Default is 8.
  • clearAllOrdersInterval Interval in minutes to clear all opened orders. Default is 0 (disabled).
  • apikey Exchange's account API key (username/login for some exchanges) for connection. Obligatory.
  • apisecret Exchange's account API secret (password for some exchanges) for connection. Obligatory.
  • apipassword Exchange's account trade password. If needed for exchange.
  • passPhrase The bot's secret phrase for accepting commands. Obligatory. Bot's ADM address will correspond this passPhrase.
  • admin_accounts <string, array> ADAMANT accounts to accept commands from. Commands from other accounts will not be executed. At lease one account.
  • notify_non_admins Notify non-admins that they are not admins. If false, bot will be silent.
  • node_ADM <string, array> List of nodes for API work, obligatorily
  • infoservice <string, array> List of ADAMANT InfoServices for catching exchange rates, recommended
  • slack Token for Slack alerts for the bot’s administrator. No alerts if not set.
  • adamant_notify ADM address for the bot’s administrator. Recommended.
  • silent_mode Enable if you don't want to receive "not enough balance" and "unable to execute cross-order" notifications. Default is "false".
  • socket If to use WebSocket connection. Recommended for better user experience.
  • ws_type Choose socket connection, "ws" or "wss" depending on your server.
  • bot_name Bot's name for notifications.
  • welcome_string How to reply user in-chat, if unknown command received.

Launching

You can start the Bot with the node app command, but it is recommended to use the process manager for this purpose.

pm2 start --name tradebot app.js

Add Bot to cron

crontab -e

Add string:

@reboot cd /home/adamant/adamant-tradebot && pm2 start --name tradebot app.js

Updating

su - adamant
cd ./adamant-tradebot
pm2 stop tradebot
mv config.json config_bup.json && git pull && mv config_bup.json config.json
npm i
pm2 start --name tradebot app.js

adamant-tradebot's People

Contributors

adamant-al 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.