An open API service indexing awesome lists of open source software.

https://github.com/telebotmake/btc_signal_bot

This is a Telegram bot that provides buy and sell signals for Bitcoin based on various technical indicators and candlestick patterns. πŸ“Š The bot uses CoinGecko API to fetch real-time Bitcoin price data and TA-Lib for technical analysis. πŸ’Ή
https://github.com/telebotmake/btc_signal_bot

bitcoin btc predictor price price-tracker telegram telegrambot tool

Last synced: 7 months ago
JSON representation

This is a Telegram bot that provides buy and sell signals for Bitcoin based on various technical indicators and candlestick patterns. πŸ“Š The bot uses CoinGecko API to fetch real-time Bitcoin price data and TA-Lib for technical analysis. πŸ’Ή

Awesome Lists containing this project

README

          

# Bitcoin Signal Bot πŸš€

This is a **Telegram bot** that provides **buy** and **sell** signals for **Bitcoin** based on various technical indicators and candlestick patterns. πŸ“Š The bot uses **CoinGecko API** to fetch real-time Bitcoin price data and **TA-Lib** for technical analysis. πŸ’Ή

## Features 🌟

- **Buy and Sell Signals** πŸ’°: The bot generates trading signals based on multiple indicators such as:
- **SMA (Simple Moving Average)** πŸ“ˆ
- **RSI (Relative Strength Index)** πŸ“‰
- **MACD (Moving Average Convergence Divergence)** πŸ”„
- **Bollinger Bands** πŸ“Š
- **Candlestick Patterns** (e.g., Doji, Hammer) πŸ”₯

- **Real-Time Bitcoin Price** πŸ’Έ: Displays the current price of Bitcoin along with the trading signal.
- **Telegram Bot Interface** πŸ€–: The bot is built on Telegram’s Bot API to allow easy interaction with users.

## Prerequisites πŸ› οΈ

- **Python 3.7+**: Make sure you have Python 3.7 or later installed.
- **Telegram Bot API Token**: You’ll need to create a bot on Telegram and get its API token. πŸ“²

## Installation πŸ—οΈ

### 1. Clone the Repository

Clone this repository to your local machine:

```bash
git clone https://github.com/your-username/bitcoin-signal-bot.git
cd bitcoin-signal-bot
```

### 2. Create a Virtual Environment (Optional but recommended)

It's best to create a virtual environment to avoid conflicts with other Python packages on your system. πŸ§‘β€πŸ’»

```bash
python -m venv venv
```

Activate the virtual environment:

- On Windows:

```bash
.\venv\Scripts\activate
```

- On macOS/Linux:

```bash
source venv/bin/activate
```

### 3. Install the Required Dependencies πŸ“¦

Install the necessary Python packages using `pip`:

```bash
pip install -r requirements.txt
```

### 4. Configure the Bot πŸ“

You need to add your **Telegram Bot API token**. Open `bot.py` and replace the placeholder `your_telegram_bot_token` with your bot’s API token.

```python
API_TOKEN = "your_telegram_bot_token" # Replace with your actual token
```

### 5. Run the Bot πŸš€

To run the bot, execute the following command:

```bash
python bot.py
```

The bot will start and listen for incoming commands like `/start` and `/signal`. 🎯

## Commands πŸ“œ

- `/start` πŸŽ‰: Displays a welcome message and an overview of how the bot works.
- `/signal` πŸ”₯: Provides the latest buy/sell signal along with the reasoning based on technical indicators and candlestick patterns.

## Python Dependencies 🐍

The bot requires the following Python packages:

- `requests`: To fetch data from the CoinGecko API. 🌍
- `pandas`: For handling data in tabular form. πŸ—ƒοΈ
- `talib`: For technical analysis (used for calculating indicators). πŸ“Š
- `telegram`: For interacting with the Telegram Bot API. πŸ€–

To install the dependencies, you can use:

```bash
pip install requests pandas talib telegram
```

Alternatively, you can use the `requirements.txt` file to install all dependencies:

```bash
pip install -r requirements.txt
```

## Customization πŸ› οΈ

Feel free to modify the bot to add more indicators, adjust the logic for buy/sell signals, or customize the messages. ✨

## License πŸ“

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. πŸ“œ

## Support πŸ’¬

For any issues or questions, feel free to open an issue on the GitHub repository or contact me directly. πŸ’Œ