Skip to main content

Triangular arbitrage by OctoBot

Project description

Triangular illustration

Triangular Arbitrage by OctoBot 1.1.0

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 and a list of symbol to whitelist using whitelisted_symbols.

Help

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

OctoBot-Triangular-Arbitrage-1.1.0.tar.gz (16.4 kB view details)

Uploaded Source

File details

Details for the file OctoBot-Triangular-Arbitrage-1.1.0.tar.gz.

File metadata

File hashes

Hashes for OctoBot-Triangular-Arbitrage-1.1.0.tar.gz
Algorithm Hash digest
SHA256 54649f3e08626380e5d0e832799d3eaaf23090b0add544f013a3f20c3a37d737
MD5 e3d2579971c173f1be9111d932270afb
BLAKE2b-256 509a29cf7c062befd01edb601ffe5cad8a0ba236a06db220f687caef2e04af16

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page