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. πΉ
- Host: GitHub
- URL: https://github.com/telebotmake/btc_signal_bot
- Owner: telebotmake
- License: mit
- Created: 2025-01-09T11:37:13.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-10T08:03:12.000Z (9 months ago)
- Last Synced: 2025-01-19T05:41:23.089Z (9 months ago)
- Topics: bitcoin, btc, predictor, price, price-tracker, telegram, telegrambot, tool
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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. π