Skip to content

nelso0/barbotine-arbitrage-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barbotine arbitrage bot Logo

Twitter @nelsodot GitHub @nelso0

Table of content

  • Compatible with all ccxt exchanges
  • Look for oportunities on up to 30 simultaneous exchanges at the same time
  • Rebalance system with balance simulation to ensure that all possible opportunities are taken into account
  • Full live tracking on Telegram and Discord webhooks
  • Permanent live rate display in the terminal

Message from after the video: the nb_exchanges variable in the config is now deleted, the bot automatically detects the number of exchanges you put.

Here is the setup & demo video for beginners: https://youtu.be/Uw6ajbODid0

  • Python 3+ inferior to 3.12! (for windows users: if python or pip isn't recognized as a command, make sure you have installed python by checking the box "add to PATH")
  1. Clone the repository
git clone https://github.com/nelso0/barbotine-arbitrage-bot # you can also download the zip file
  1. Go to the repository you just cloned
cd barbotine-arbitrage-bot
  1. Install all the requirements to run the arbitrage system
pip install -r requirements.txt
  1. Set your configuration details in exchange_config.py
  2. Run with:
python run.py

You can also run it with one line like this:

python run.py <mode> [renew-time-minutes] <balance-usdt-to-use> <symbol> <exchanges list separated by commas (no space!)>
  • <mode> = the mode you wanna use among fake-money, classic, and delta-neutral. See #full-version for classic and delta-neutral modes.

    • fake-money will run the bot with the balance-usdt-to-use you put, with a virtual balance, just to test.
    • classic will run the bot with real USDT.
    • delta-neutralwill run the bot with real USDT also, but in a delta-neutral situation. (a bit less profits but you won't loose a cent if the crypto you're using dump in 5 minutes (for very very careful people).
  • [renew-time-minutes] = ONLY IF YOU ENABLED RENEWAL SETTING IN THE CONFIG. If you enabled it, you have to put the number of minutes a session should last. After each session, the bot sells all the assets back to USDT and start again. It's for volatile assets if you want to refresh the price at which the bot bought the asset.

  • <balance-usdt-to-use> = how to be clearer?

  • <symbol> = The symbol you wanna arbitrage on. Every time it renews, it sells all the crypto and rebuy the crypto asset at the new price.

  • <exchanges list> = the exchanges you want to use among all the CCXT-compatible exchanges. At least 2 exchanges, theorically infinite maximum. Don't forget to configure the exchanges in exchange_config.py.

Note: you can put a minimum profit in USD or % in exchange_config.py. The bot will only take the trade if the profit is > (superior) to your value. You can also use pairs without USDT, like ETH/BTC.

Examples:

python run.py fake-money 15 500 EOS/USDT binance,okx,kucoin    # run the system with 500 USDT and renew the session every 15 minutes, with binance okx and kucoin
python run.py classic 15 1000 SOL/USDT binance,poloniex,kucoin   # run the system with 1000 USDT on binance phemex and bybit on SOL/USDT, and renew the session every 15 minutes.
python run.py delta-neutral 60 750 BTC/USDT okx,cryptocom,huobi   # run the system in a delta-neutral situation with 750 USDT and renew the session each hour, on okx crypto.com and huobi. Note that with same amount of USDT, the delta-neutral mode will have 2/3 of the profits of the classic mode because it has less liquidity to invest in arbitrage opportunities.

The full version works with real money.

More info here: barbotine.xyz

/!\ No financial advise, DYOR /!\

Contact

nelso@barbotine.xyz