Skip to content

Cryptocurrency arbitrage trading bot (2017) - Multi-exchange price difference detection and automated trading

License

Notifications You must be signed in to change notification settings

dylee9/coin-trader

Repository files navigation

coin-trader

Python License Status

A cryptocurrency trading bot that uses a maximized profit trading algorithm to trade major cryptocurrencies, taking advantage of existing coin-pair arbitrages. This trading algorithm was developed by Jason Lee and Thomas Mayo Smith in 2017 to trade on irregular arbitrage levels, profiting a combined $20,000 over a span of a month.

📋 Features

  • Multi-Exchange Support: Bittrex, Bithumb, and Poloniex integration
  • Arbitrage Detection: Automated detection of price discrepancies between exchanges
  • Automated Trading: Buy/sell execution based on arbitrage opportunities
  • Real-time Monitoring: Continuous monitoring of market conditions
  • Profit Optimization: Algorithm designed to maximize trading profits

🏗️ Architecture

coin-trader/
├── arbitrage_bot.py          # Main trading bot logic
├── arbitrage_finder.py       # Arbitrage opportunity detection
├── monitor_arbitrage.py      # Market monitoring tool
├── exchange_client.py        # Base exchange client interface
├── bittrex_arbitrage_client.py    # Bittrex exchange integration
├── bithumb_arbitrage_client.py    # Bithumb exchange integration
├── poloniex_arbitrage_client.py   # Poloniex exchange integration
├── utils.py                  # Utility functions and data structures
└── README.md

🚀 Quick Start

Prerequisites

  • Python 2.7 (⚠️ Deprecated - Use Python 3.x for new projects)
  • Required Python packages (see requirements below)

Installation

  1. Clone the repository:
git clone https://github.com/dylee9/coin-trader.git
cd coin-trader
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up API keys:
# Create key files (NOT RECOMMENDED for production)
echo "your_bittrex_api_key" > bittrex_keys.txt
echo "your_bittrex_secret" >> bittrex_keys.txt
echo "your_bithumb_api_key" > bithumb_keys.txt
echo "your_bithumb_secret" >> bithumb_keys.txt

Usage

# Run the main trading bot
python arbitrage_bot.py /path/to/key/folder

# Monitor arbitrage opportunities
python monitor_arbitrage.py /path/to/key/folder

📊 Supported Exchanges

Exchange Status Base Currencies Trading Pairs
Bittrex ✅ Active BTC BTC, ETH, ETC, LTC, DASH
Bithumb ✅ Active KRW BTC, ETH, ETC, LTC, DASH
Poloniex ✅ Active BTC Multiple pairs

⚙️ Configuration

# Example configuration (currently hardcoded)
MAX_TRADE_CYCLES = 1
DEPOSIT_WAIT_MIN = 60*5  # 5 hours
ARBITRAGE_OPPORTUNITY_WAIT_MIN = 60*24  # 24 hours
ORDER_FILL_WAIT_MIN = 5  # 5 minutes
PROFIT_THRESHOLD = .01   # 1%

📈 Performance

  • Historical Performance: $20,000 profit over one month (2017)
  • Supported Currencies: BTC, ETH, ETC, LTC, DASH
  • Trading Frequency: Real-time monitoring with configurable intervals

📦 Dependencies

pycurl
urllib3

🤝 Contributing

This project is archived and no longer accepting contributions. However, if you're interested in cryptocurrency trading bots, consider:

  1. Forking this repository for educational purposes
  2. Implementing modern security practices
  3. Upgrading to Python 3.x
  4. Adding proper testing and documentation

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

📧 Contact

  • Jason Lee
  • Thomas Mayo Smith

Note: This project was developed in 2017 and represents historical work in cryptocurrency trading automation. Modern implementations should follow current security best practices and use up-to-date libraries and frameworks.

About

Cryptocurrency arbitrage trading bot (2017) - Multi-exchange price difference detection and automated trading

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages