alpha-rptr  by TheFourGreatErrors

Trading bot for automated algorithmic trading

created 5 years ago
566 stars

Top 57.7% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides a Python-based automated trading system for major cryptocurrency exchanges (Binance Futures, Bybit, BitMEX, FTX). It targets algorithmic traders looking for a unified platform to develop, backtest, paper trade, and deploy strategies with minimal code changes across environments. The system aims to reduce the discrepancy between simulated and live trading results.

How It Works

The system is event-driven, reacting to market data and order updates. It supports a wide array of order types, including advanced options like trailing stops and iceberg orders. Strategies are implemented as Python classes within a dedicated strategies directory, allowing for custom logic and indicator integration. The core design emphasizes a seamless transition from backtesting to live trading, with a focus on minimizing code divergence.

Quick Start & Requirements

  • Installation: Requires Python 3.9.9. TA-Lib C library must be compiled first. Installation involves cloning the repo, installing Python dependencies (pip install -r requirements.txt), and configuring API keys in src/config.py.
  • Prerequisites: TA-Lib C library (compilation required), Python 3.9.9.
  • Setup: Configuration of API keys and exchange settings is necessary.
  • Documentation: Extensive details on usage, modes (production, demo, backtest, hyperopt, paper trading), custom strategy implementation, and available functions are provided.

Highlighted Details

  • Supports multiple exchanges: Binance Futures, Bybit, BitMEX, FTX.
  • Offers backtesting, paper trading, and live trading modes.
  • Includes a hyperparameter optimization (hyperopt) mode.
  • Provides a comprehensive set of technical indicators and math functions.
  • Features an HTML5 Workbench for backtest visualization with TradingView Lite.
  • Supports session persistence for saving strategy state between restarts.
  • Integrates with InfluxDB for metrics logging and Discord/LINE for notifications.

Maintenance & Community

  • The project has an active Discord server for support, bug reporting, and strategy discussions.
  • Tip jar addresses are provided for financial support.

Licensing & Compatibility

  • The repository does not explicitly state a license in the provided README. This requires further investigation for commercial use or closed-source integration.

Limitations & Caveats

  • The README contains a disclaimer stating the author is not liable for losses.
  • Reference strategies are provided for educational purposes and require thorough testing before live deployment.
  • TradingView strategy integration is mentioned but noted as not currently supported via Gmail.
Health Check
Last commit

5 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
46 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.