Giter Site home page Giter Site logo

binancetriarb's Introduction

Binance Arbitrator

This bot is meant to trade triangular arbitrage on binance. Using the binance websocket api to retrieve data, it's pretty fast and executes trades at the blink of an eye. Nevertheless I didn't managed this to be profitable, as it's still to slow to take advantage of triangular arbitrage opportunities. Maybe with a good server location and low latency connection this could be profitable.

Use at your own risk. I'm not responsible for any losses and/or damage caused by this code

How it works

The script tracks the prices of each altcoin on the USDT and the BTC market. If it detects a difference, greater than the cumulated trading fee, it buys altcoins on the cheaper market and sells on the more expensive. Below both possibilities are visualized:

Triangular Arbitrage

Dependencies

This Bot is written and tested in Python3.6. It depends on websockets & python-binance modules. You can install these dependencies by navigating to the project folder and typing:

pip install -r requirements.txt

Setup

  1. Download this repo
  2. Create an Binance account
  3. Make sure to have at least 10 USDT in your binance account
  4. Create an api key and write down both (the public and secret) keys
  5. Put your api keys inside the config.json file
  6. (Optionally) adjust the maximum trade amount (in USDT) in config.json
  7. (Optionally) adjust the tradable currencies in config.json - Note that a currencies must be available to trade on both the USDT and BTC markets, in order to be traded.
  8. Start bnArb.py

I would love to know if you could manage to make some profits out of this. For any questions, inquiries or suggestions, contact me at [email protected]

binancetriarb's People

Contributors

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