Code Monkey home page Code Monkey logo

arbitrage-bot-autradex-graviex's Introduction

Arbitrage-Bot-Autradex-Graviex

An Arbitrage Bot to Arb the Markets between Autradex Exchange and Graviex Exchange

autradex-js

A libary for autradex API written in JS

graviex-js

A libary for graviex API written in JS

Here is a full implementation of the autradex and graviex exchange API in a nodejs NPM package.

accessKey secretKey listMarkets allMarketsTicker ticker account allDeposits deposits deposit depositAddress orders ordersAll createOrder order cancelOrder clearAllOrdersSide clearAllOrders orderBook depth trades myTrades kLine timestamp

//listMarkets
//Get all available markets
/*
listMarkets(function(res){
	if(!res.error){
		//console.log(res);
		for (var key in res) {
			if (res.hasOwnProperty(key)) {
				console.log(res[key]);
			}
			}
	}else{
		console.log(res)
	}
});
*/  

//createOrder    
//Create a Sell/Buy order    
/*    
createOrder("onzbtc", "buy", "5.0", "0.000000200", function(res){    
    if(!res.error){    
        console.log(res);    
    }else{    
       console.log("ERROR: " + res)    
    }    
});

*/

Example:

    //Import module
    var  autradex  =  require("./autradex.js"); 
    //Settings / Config  
    autradex.accessKey  =  "";    
    autradex.secretKey  =  ""
    
    autradex.allMarketsTicker(function(res){
        if(!res.error){        
            console.log(res)
        }else{        
            console.log(res)
        }        
    });

For a more detailed example, please see "marketmaker.js" in the git directory.

Setup WSL to run on Windows

https://msdn.microsoft.com/en-us/commandline/wsl/install_guide

Setup and Run the Arbitrage Bots

Install:

sudo apt update
sudo apt install nodejs
npm install pm2 -g
git clone https://github.com/nightanticipate/Arbitrage-Bot-Autradex-Graviex
cd Arbitrage-Bot-Autradex-Graviex
npm install
cp config,json.example config.json
nano config.json
Input your API Keys, adjust volume and allowed spread and loop times
Ctrl x to save
pm2 start dogebtcarb.js
pm2 log

You'll now be running the doge/btc arbitrage bot, pm2 start the other files once your config is setup

Available Bots as of latest commit:

dogebtcarb.js
dgbbtcarb.js
ltcbtcarb.js
rvnbtcarb.js
genixbtcarb.js
genixdogearb.js
customarb.js

genixbtcmarketmaker.js
genixdogemarketmaker.js
marketmaker.js

arbitrage-bot-autradex-graviex's People

Contributors

farsider350 avatar

Stargazers

 avatar

Watchers

 avatar  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.