This is a simple, open-source automated trading bot for Bitcoin (BTC), created as a project by a Computer Science major. The bot is designed to execute trades on the Binance exchange based on various technical analysis indicators. The project is licensed under the MIT License.
MIT License
This is a simple, open-source automated trading bot for Bitcoin (BTC), created as a project by a Computer Science major. The bot is designed to execute trades on the Binance exchange based on various technical analysis indicators. The project is licensed under the MIT License.
git clone https://github.com/yourusername/trading-bot.git
cd trading-bot
pip install -r requirements.txt
brew install python
git clone https://github.com/yourusername/trading-bot.git
cd trading-bot
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
sudo apt update
sudo apt install python3 python3-venv python3-pip
git clone https://github.com/yourusername/trading-bot.git
cd trading-bot
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
The bot requires a .env
file for configuration, which includes API keys and trading settings. Here is an example of how to set up your .env
file:
# Environment setting
ENVIRONMENT=paper
# Live environment API keys
LIVE_API_KEY=your_binance_api_key
LIVE_API_SECRET=your_binance_api_secret
# Paper environment API keys
PAPER_API_KEY=your_testnet_api_key
PAPER_API_SECRET=your_testnet_api_secret
# Trading symbol
TRADING_SYMBOL=BTCUSDT
paper
for testnet (paper trading) or live
for real trading.BTCUSDT
..env.example
to .env
.your_binance_api_key
and your_binance_api_secret
with your actual Binance API credentials.To start the trading bot, simply run the following command:
cd src/
python main.py
The bot will begin fetching market data, applying the trading strategy, and executing trades based on the signals generated.
This is an open-source project, and contributions are welcome! Please open issues or pull requests with any suggestions or improvements.
The current trading strategy uses a combination of Simple Moving Averages (SMA), Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and Bollinger Bands. We are particularly interested in feedback on the following:
Feel free to reach out via GitHub issues or contribute directly through pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.