This is a Telegram bot that provides with relevant information about crypto currency prices from different exchangers (such as Binance, Exmo).
Heroku is used to deploy the bot in docker. Chosen CI is Travis.
First of all, you should initialize environment variables:
Name | Description |
---|---|
TELEGRAM_BOT_TOKEN | Telegram bot token (@BotFather knows it) |
TELEGRAM_CHANNEL_CHAT_ID | Telegram channel ID where bot will send log-information |
BINANCE_API_KEY | Binance API key |
BINANCE_SECRET_KEY | Binance secret key (can be obtained in Binance settings) |
BINANCE_API_KEY
and BINANCE_SECRET_KEY
are optional (the application will work even without them).
The next thing to do is adding supported Binance currency pairs into config.go
:
BinancePairs = []model.Pair{
{"BTC", "USDT"},
{"BNB", "BTC"},
{"ETH", "BTC"},
{"XRP", "BTC"},
{"DASH", "BTC"},
{"ETC", "BTC"},
}
Now you can run the application with go run main.go
or from Dockerfile.
Only russian language is supported.
You can try it here: @cpparser_bot