Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/formysister/nodejs-arbitrage-bot

Simple crypto arbitrage bot to make profit on CEX platforms🤖
https://github.com/formysister/nodejs-arbitrage-bot

arbitrage-trading bot cex crypto nodejs stretage

Last synced: about 1 month ago
JSON representation

Simple crypto arbitrage bot to make profit on CEX platforms🤖

Awesome Lists containing this project

README

        

# How it works

Cryptocurrency Arbitrage Bot is a node.js trading system that does automatic long/short arbitrage between the two biggest Bitcoin exchanges: [Poloniex](https://poloniex.com/) and [Bitfinex](https://www.bitfinex.com/). The purpose of this bot is to automatically profit from these temporary price differences whilst remaining market-neutral.

Here is a real example where an arbitrage opportunity exists between Poloniex (long) and Bitfinex (short):

![image](http://i.imgur.com/t9Pnjz1.png)
At the first vertical line, the spread between the exchanges is high so the bot buys Poloniex and short sells Bitfinex. Then, when the spread closes (second vertical line), the bot exits the market by selling Poloniex and buying Bitfinex back. Note that this methodology means that profits are realised *even in if the price of your asset decreases.*

### Advantages

Unlike other Bitcoin arbitrage systems, this bot doesn't sell but actually short sells Bitcoin (and other Cryptos) on the short exchange. This feature offers two important advantages:

1. The strategy is market-neutral: the Bitcoin market's moves (up or down) don't impact the strategy returns. This removes a huge risk from the strategy. The Bitcoin market could suddenly lose twice its value that this won't make any difference in the strategy returns.

2. The strategy doesn't need to transfer funds (USD or BTC) between Bitcoin exchanges. The buy/sell and sell/buy trading activities are done in parallel on two different exchanges, independently. This means that there is no need to deal with transfer latency issues.

A situational explanation can be found [in the wiki](https://github.com/joepegler/Cryptocurrency-Arbitrage-Bot/wiki)

### Installation

This bot requires [Node.js](https://nodejs.org/) v4+ to run.

Install the dependencies and devDependencies and start the server.

```sh
$ npm install -d
```

To test the bot and investigate it's features:
```sh
$ node playground
```

To start the bot and begin listening for opportunities:
```sh
$ node app
```