Skip to main content

Arbitrage trading bot for Binance, based on https://github.com/bmino/binance-triangle-arbitrage

Project description

bTrader

This is an arbitrage trading bot based on this JS implementation. For that reason, the configuration files for both of them are fully compatible.

Steps to run the bot

Two-step process:

  1. Read the configuration guide from here. I was lazy to write one of my own, so you can read it from the JS implementation repository. After that, generate your own configuration file or just edit the one on the config/ directory on this repository.

  2. (Recommended) Use the Docker image ($(pwd)/config.json is the path to your configuration file):

docker run -it --name btrader -v $(pwd)/config.json:/config.json gabrielmilan/btrader
  1. (Few more steps) Use the Python package:
python3 -m pip install btrader
python3
>>>> from btrader import bTrader
>>>> bot = bTrader("config.json")
>>>> bot.run()

Development status

  • C++ implementation of calculations
  • Monitoring websockets
  • Computing profits over all possible triangles
  • Filtering and showing viable operations
  • Implement asset step size
  • Structure for holding trading actions and quantities
  • Perform trading actions
  • Best deals printing
  • Telegram bot
  • Generate binary distributions

Config file compatibility

  • KEYS
  • INVESTMENT
  • TRADING [ENABLED, TAKER_FEE, PROFIT_THRESHOLD, AGE_THRESHOLD]
  • TRADING [EXECUTION_STRATEGY, EXECUTION_TEMPLATE, EXECUTION_CAP]
  • HUD
  • LOG
  • DEPTH [SIZE]
  • DEPTH [PRUNE, INITIALIZATION_INTERVAL]
  • TIMING

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

btrader-0.1.1.tar.gz (410.4 kB view hashes)

Uploaded Source

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