GithubHelp home page GithubHelp logo

jbetser / gemini Goto Github PK

View Code? Open in Web Editor NEW
12.0 9.0 3.0 11.49 MB

Cryptocurrency arbitrage algorithm covering Binance, Bitfinex, Hitbtc, Bittrex and more

License: GNU Affero General Public License v3.0

Python 99.95% Batchfile 0.05%

gemini's Introduction

Gemini is a cryptocurrency arbitrage trading algorithm.

How it works?

It scans exchange order books via websockets. Each exchange communication is handled in a dedicated thread.

Everytime there is an arbitrage opportunity between two order books, it fires a BUY and a SELL order simultaneously.

If an order is not fully executed it will attempt to clear the trade at mid-spread price. It can potentially make a significant loss if the market moves very quickly.

By default it simulates trades. If you wish to trade live (mode "LIVE"), trade at your own risks. There is no guarantee whatsoever that you will not make losses either because of a bug in the code or if the execution is too slow. In fact, you should always monitor the trading activity carefully, and adjust your profit target depending on the lags with the exchanges.

To trade live you need to provide api key files in APIKEY_DIR. The format is two lines:

  • First line is the API key
  • Second line is the secret key

Instructions for Windows (could be easily made compatible with Linux. TODO: test on Linux)

  • Install or upgrade to Python 3.6.5+
  • Install or upgrade to NodeJs 8.10.0+
  • Make sure python 3.6 and nodejs are in your PATH. the following commands should return the right folders

where node

where python

  • Install the following wheels:

pip install utils\wheels\pypiwin32-220-cp36-none-win_amd64.whl

pip install utils\wheels\Twisted-17.9.0-cp36-cp36m-win_amd64.whl

  • Install the following certificates to the corresponding repository:

utils\cert\geotrust_primary_g3.crt -> Root CA

utils\cert\geotrust_intermediate_sha256.crt -> Intermediate CA

  • Install the command prompt ansi support:

utils\ansi\ansicon.exe --i

  • Install openssl for python:

pip install pyopenssl

  • run install.cmd
  • (optional) run run_tests.cmd
  • run launch.cmd

Happy Trading! :-)

P.S. Gemini is part of a broader project to achieve large scale high frequency trading in the crypto space. If you are interested in contributing please email me at [email protected].

gemini's People

Contributors

jbetser avatar

Stargazers

 avatar ljdog avatar esbm0906 avatar  avatar  avatar Gergely Csécsey avatar  avatar  avatar  avatar Armel Sahamene avatar  avatar

Watchers

James Cloos avatar  avatar iefuzzer avatar  avatar  avatar Armel Sahamene avatar  avatar  avatar  avatar

Forkers

juanpablobr

gemini's Issues

Missing Files

Thanks for creating this bot. There are missing files in gemini folder like bot.py and profit_calculator_triangle.py

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.