{"id":19921948,"url":"https://github.com/drakkar-software/triangular-arbitrage","last_synced_at":"2026-02-25T20:03:51.403Z","repository":{"id":200321519,"uuid":"705192534","full_name":"Drakkar-Software/Triangular-Arbitrage","owner":"Drakkar-Software","description":"Free open source crypto triangular arbitrage opportunities detector on Binance, Hyperliquid and 15+ exchanges","archived":false,"fork":false,"pushed_at":"2025-12-12T13:21:45.000Z","size":237,"stargazers_count":114,"open_issues_count":4,"forks_count":48,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-02-24T00:48:17.136Z","etag":null,"topics":["arbitrage","arbitrage-opportunity","crypto","cryptocurrency","trading","triangular-arbitrage"],"latest_commit_sha":null,"homepage":"https://www.octobot.cloud/tools/triangular-arbitrage?utm_source=github\u0026utm_medium=dk\u0026utm_campaign=free_tools\u0026utm_content=repo_link","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Drakkar-Software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-15T10:09:48.000Z","updated_at":"2026-02-18T16:02:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"186bba28-7210-45c1-8887-ffafa0b1a363","html_url":"https://github.com/Drakkar-Software/Triangular-Arbitrage","commit_stats":null,"previous_names":["drakkar-software/triangular-opportunity-detector"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/Drakkar-Software/Triangular-Arbitrage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakkar-Software%2FTriangular-Arbitrage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakkar-Software%2FTriangular-Arbitrage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakkar-Software%2FTriangular-Arbitrage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakkar-Software%2FTriangular-Arbitrage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Drakkar-Software","download_url":"https://codeload.github.com/Drakkar-Software/Triangular-Arbitrage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakkar-Software%2FTriangular-Arbitrage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29837467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T19:08:47.527Z","status":"ssl_error","status_checked_at":"2026-02-25T18:59:04.705Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arbitrage","arbitrage-opportunity","crypto","cryptocurrency","trading","triangular-arbitrage"],"created_at":"2024-11-12T22:08:53.513Z","updated_at":"2026-02-25T20:03:51.398Z","avatar_url":"https://github.com/Drakkar-Software.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"illustration.jpeg\" width=\"250px\" height=\"250px\" alt=\"Triangular illustration\"\u003e\n\u003c/p\u003e\n\n# Arbitrage Opportunity Detection by OctoBot [1.2.2](https://github.com/Drakkar-Software/Triangular-Arbitrage/blob/master/CHANGELOG.md)\n[![PyPI](https://img.shields.io/pypi/v/OctoBot-Triangular-Arbitrage.svg)](https://pypi.python.org/pypi/OctoBot-Triangular-Arbitrage/)\n[![Dockerhub](https://img.shields.io/docker/pulls/drakkarsoftware/octobot-triangular-arbitrage.svg?logo=docker)](https://hub.docker.com/r/drakkarsoftware/octobot-triangular-arbitrage)\n\nThis Python-based project utilizes the [ccxt library](https://github.com/ccxt/ccxt) and the [OctoBot library](https://github.com/Drakkar-Software/OctoBot) to detect potential arbitrage opportunities across multiple assets in cryptocurrency markets. It identifies profitable cycles where you can trade through a series of assets and return to the original asset with a potential gain, making it applicable for arbitrage strategies beyond just triangular cycles.\n\n## Description\n\nArbitrage trading is a process where you trade from one asset or currency to another, and then continue trading through a series of assets until you eventually return to the original asset or currency. The goal is to exploit price differences between multiple assets to generate a profit. For example, you could start with USD, buy BTC, use the BTC to buy ETH, trade the ETH for XRP, and finally sell the XRP back to USD. If the prices are favorable throughout the cycle, you could end up with more USD than you started with. This project provides a method to identify the best arbitrage opportunities in a multi-asset cycle, given a list of last prices for different cryptocurrency pairs. It's a versatile and effective tool for anyone interested in cryptocurrency trading and arbitrage strategies across various currencies and assets.\n\nNote: the results do not account for fees during trades. This can have a significant impact on performance.\n\n## Getting Started\n\n### Dependencies\n\n* Python 3.10\n\n### Installing\n\n```\npip3 install -r requirements.txt\n```\n\n### Usage\nStart detection by running:\n```\npython3 main.py\n```\n\nExample output on Binance:\n```\n-------------------------------------------\nNew 2.33873% binanceus opportunity:\n# 1. buy DOGE with BTC at 552486.18785\n# 2. sell DOGE for USDT at 0.12232\n# 3. buy ETH with USDT at 0.00038\n# 4. buy ADA with ETH at 7570.02271\n# 5. sell ADA for USDC at 0.35000\n# 6. buy SOL with USDC at 0.00662\n# 7. sell SOL for BTC at 0.00226\n-------------------------------------------\n```\n\n### Configuration\nTo change the exchange edit `main.py` `exchange_name` value to the desired exchange. It should match the exchange [ccxt id value](https://github.com/ccxt/ccxt?tab=readme-ov-file#certified-cryptocurrency-exchanges)\n\nYou 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`.\n\n## Help\n\nYou can join any OctoBot community to get help [![Discord](https://img.shields.io/discord/530629985661222912.svg?logo=discord\u0026label=Discord)](https://octobot.click/gh-discord) [![Telegram Chat](https://img.shields.io/badge/telegram-chat-green.svg?logo=telegram\u0026label=Telegram)](https://octobot.click/gh-telegram)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakkar-software%2Ftriangular-arbitrage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrakkar-software%2Ftriangular-arbitrage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakkar-software%2Ftriangular-arbitrage/lists"}