GithubHelp home page GithubHelp logo

herklos / triangular-arbitrage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drakkar-software/triangular-arbitrage

0.0 0.0 0.0 212 KB

Crypto triangular arbitrage by OctoBot

Home Page: https://www.octobot.cloud/tools/triangular-arbitrage?utm_source=github&utm_medium=dk&utm_campaign=free_tools&utm_content=repo_link

License: GNU Affero General Public License v3.0

Python 95.01% Dockerfile 4.99%

triangular-arbitrage's Introduction

Triangular illustration

Triangular Arbitrage by OctoBot 1.0.5

PyPI Dockerhub

This Python-based project utilizes the ccxt library and OctoBot library to detect potential triangular arbitrage opportunities in cryptocurrency markets.

Description

Triangular arbitrage is a process where you trade from one currency to another, and then to another, and finally back to the original currency. The goal is to exploit differences in prices between the three currencies to make a profit. For example, you could start with USD, buy BTC, then use the BTC to buy ETH, and finally sell the ETH for USD. If the prices are right, you could end up with more USD than you started with. This project provides a method to identify the best triangular arbitrage opportunity given a list of last prices for different cryptocurrency pairs. It's a simple and effective tool for anyone interested in cryptocurrency trading and arbitrage strategies.

Getting Started

Dependencies

  • Python 3.10

Installing

pip3 install -r requirements.txt

Usage

Start detection by running:

python3 main.py

Example output on Binance:

-------------------------------------------
New 1.0354% binance opportunity:
1. sell WIN/BNB
2. sell BNB/BRL
3. buy WIN/BRL
-------------------------------------------

Configuration

To change the exchange edit main.py exchange_name value to the desired exchange. It should match the exchange ccxt id value

You can also provide a list of symbol to ignore when calling run_detection using ignored_symbols.

Help

You can join any OctoBot community to get help Discord Telegram Chat

triangular-arbitrage's People

Contributors

herklos 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.