It is a simple crypto Telegram Bot based on CHART-IMG API. It supports all TradingView symbols and is not limited to only crypto symbols. However, the focus will be on the crypto market in future updates.
You can use this bot if you don't want to customize your own. It will always run with the latest version.
CHART-IMG API key is required.
Get your free personal API key at https://chart-img.com.
git clone https://github.com/hawooni/crypto-opnbot
cd crypto-opnbot
Customize preset settings by modifying config/setting.js
. Refer to CHART-IMG Documentation for a more detailed configuration.
module.exports = {
DEFAULT_SYMBOL: 'BTCUSDT',
DEFAULT_EXCHANGE: 'BINANCE',
DEFAULT_PRICE_INTERVAL: '3M',
DEFAULT_CHART_INTERVAL: '1d',
DEFAULT_CHART_STUDIES: ['EMA:50', 'EMA:200', 'RSI'],
DEFAULT_TIMEZONE: 'Etc/UTC',
...
}
You should create .env file with the following variable(s):
TELEGRAM_TOKEN=<your_telegram_token>
CHART_IMG_API_KEY=<your_chart_img_api_key>
Optional:
BOT_NAME=@CryptoOpnBot
CHART_IMG_WIDTH=1024
CHART_IMG_HEIGHT=768
npm install
npm start -- --telegramToken=<your_telegram_token> --apiKey=<your_chart_img_api_key>
docker run -d --restart=always --name crypto-opnbot \
-e TELEGRAM_TOKEN=<your_telegram_token> \
-e CHART_IMG_API_KEY=<your_chart_img_api_key> \
hawooni/crypto-opnbot:latest