Skip to content

ericlewis966/abitrage-nodejs-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 and Bitfinex. 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 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

Installation

This bot requires Node.js v4+ to run.

Install the dependencies and devDependencies and start the server.

$ npm install -d

To test the bot and investigate it's features:

$ node playground

To start the bot and begin listening for opportunities:

$ node app

Releases

No releases published

Packages

No packages published