All Projects → robertmartin8 → CryptoGraphArb

robertmartin8 / CryptoGraphArb

Licence: MIT license
Using graph algorithms to find arbitrage opportunities

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to CryptoGraphArb

Ccxt
A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
Stars: ✭ 22,501 (+25182.02%)
Mutual labels:  trading, arbitrage
Tradingstrategies
Algorithmic trading strategies
Stars: ✭ 120 (+34.83%)
Mutual labels:  trading, arbitrage
Octobot
Cryptocurrency trading bot: high frequency, daily trading, social trading, ...
Stars: ✭ 706 (+693.26%)
Mutual labels:  trading, arbitrage
bitcoin-arbitrage
Bitcoin arbitrage bot (BTC/JPY)
Stars: ✭ 17 (-80.9%)
Mutual labels:  trading, arbitrage
Bot18
Bot18 is a high-frequency cryptocurrency trading bot developed by Zenbot creator @carlos8f
Stars: ✭ 157 (+76.4%)
Mutual labels:  trading, arbitrage
hummingbot
Hummingbot is open source software that helps you build trading bots that run on any exchange or blockchain
Stars: ✭ 3,602 (+3947.19%)
Mutual labels:  trading, arbitrage
Ccxt.net
CCXT.NET – CryptoCurrency eXchange Trading Library for .NET
Stars: ✭ 89 (+0%)
Mutual labels:  trading, arbitrage
rockfish
Rockfish is an arbitrage bot for the Stellar Decentralized Exchange (SDEX)
Stars: ✭ 58 (-34.83%)
Mutual labels:  trading, arbitrage
Arbitragebot
Arbitrage bot that currently works on bittrex & poloniex
Stars: ✭ 141 (+58.43%)
Mutual labels:  trading, arbitrage
Roq Api
API for algorithmic and high-frequency trading
Stars: ✭ 132 (+48.31%)
Mutual labels:  trading, arbitrage
Pymarketcap
Python3 API wrapper and web scraper for https://coinmarketcap.com
Stars: ✭ 73 (-17.98%)
Mutual labels:  trading, graphs
Cryptotrader
A cryptocurrency trader for all famous exchanges
Stars: ✭ 228 (+156.18%)
Mutual labels:  trading, arbitrage
Tardis Node
Convenient access to tick-level real-time and historical cryptocurrency market data via Node.js
Stars: ✭ 126 (+41.57%)
Mutual labels:  trading, arbitrage
Ccxt Rest
Open Source Unified REST API of 100+ Crypto Exchange Sites (18k+ docker pulls) - https://ccxt-rest.io/
Stars: ✭ 210 (+135.96%)
Mutual labels:  trading, arbitrage
roq-samples
How to use the Roq C++20 API for Live Cryptocurrency Algorithmic and High-Frequency Trading as well as for Back-Testing and Historical Simulation
Stars: ✭ 119 (+33.71%)
Mutual labels:  trading, arbitrage
EA31337-classes
📦📈 EA31337 framework (MQL library for writing trading Expert Advisors, indicators and scripts)
Stars: ✭ 103 (+15.73%)
Mutual labels:  trading
copyfactory-python-sdk
Python SDK for CopyFactory trade copying API. Can copy trades both between MetaTrader 5 (MT5) and MetaTrader 4 (MT4)
Stars: ✭ 19 (-78.65%)
Mutual labels:  trading
liqui
liqui.io api wrapper
Stars: ✭ 22 (-75.28%)
Mutual labels:  trading
tastypl
Track P/L, portfolio performance, net credit after rolls, for tastytraders
Stars: ✭ 59 (-33.71%)
Mutual labels:  trading
POE-TradeMacro
Price checking script for Path of Exile.
Stars: ✭ 963 (+982.02%)
Mutual labels:  trading

CryptoGraphArb

This is the supporting code for my post on using graph theory to discover arbitrage opportunities in a cryptocurrency market.

Getting started

To run it, first sign up to CryptoCompare to get a free API key. Then, you can either replace it after the equals sign at the top of cryptocompare_scraper.py, or create a new text file named API_KEY.txt and paste it there directly.

Then, install dependencies with:

pip install -r requirements.txt

Lastly, run the code:

python cryptocompare_scraper.py
python graph_arbitrage.py

Overview

  • cryptocompare_scraper.py downloads the raw data, creating pairs_list.json, binance_data/ and snapshot.csv.
  • graph_arbitrage.py processes this data and puts it into a graph, before running Bellman-Ford to find arbitrage opportunities.

Your turn

Here's a brief list of a few ways that you could extend this project. Some are trivial, some are not!

  • Model transaction fees. This is literally one line of code, multiplying the arbitrage value by e.g 0.999 for each element in the path.
  • Download data from more exchanges. graph_arbitrage.py operates completely independently of the data collection, it just needs an adjacency matrix.
  • Automatically run the code at fixed intervals to continuously look for arbitrage.
  • Modify the Bellman-Ford so that it doesn't have to recompute everything when some weights change.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].