GithubHelp home page GithubHelp logo

larrycoin / arbitrage.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vladthelittleone/arbitrage.js

0.0 0.0 1.0 29 KB

Arbitrage Bot: a long/short market-neutral strategy

License: MIT License

JavaScript 100.00%

arbitrage.js's Introduction

version license Supported Exchanges Join the chat at https://gitter.im/vectree-chat/Lobby

Blackbird Bitcoin Arbitrage

Introduction

Arbitrage.js is a NodeJS trading system that does automatic long/short arbitrage between Bitcoin and altcoins exchanges. This project is a NodeJS copy of C++ blackbird library with some improvements:

  • arbitrage.js support much more exchanges (see ccxt docs),
  • this project includes telegram bot for notifications,
  • arbitrage.js working with all types of coins supported by ccxt.

Thanks Julien Hamilton for blackbird project!

How It Works

Bitcoin and altcoins is still a new and inefficient market. Several exchanges exist around the world and the bid/ask prices they propose can be briefly different from an exchange to another. The purpose of arbitrage.js is to automatically profit from these temporary price differences while being market-neutral.

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

Spread Example

At the first vertical line, the spread between the exchanges is high so Blackbird buys Bitstamp and short sells Bitfinex. Then, when the spread closes (second vertical line), arbitrage.js exits the market by selling Bitstamp and buying Bitfinex back.

Main part of the text was taken from blackbird docs

Advantages

Unlike other arbitrage systems, arbitrage.js doesn't sell but actually short sells Bitcoin or altcoins on the short exchange. This feature offers two important advantages:

  1. The strategy is always market-neutral: the Bitcoin or altcoins market's moves (up or down) don't impact the strategy returns. This removes a huge risk from the strategy. The Bitcoin or altcoins market could suddenly lose half 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, altcoins) between exchanges. The buy/sell and sell/buy trading activities are done in parallel on two different exchanges, independently. Advantage: no need to deal with transfer latency issues.

More details about short selling and market neutrality can be found on issue #100.

Main part of the text was taken from blackbird docs

Disclaimer

USE THE SOFTWARE AT YOUR OWN RISK. YOU ARE RESPONSIBLE FOR YOUR OWN MONEY. PAST PERFORMANCE IS NOT NECESSARILY INDICATIVE OF FUTURE RESULTS.

THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.

Potential Exchanges

Arbitrage.js using ccxt cryptocurrency trading library for working with exchanges.

arbitrage.js's People

Contributors

vladthelittleone avatar

Forkers

dheker-benamor

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.