Skip to content

A Telegram bot that gives relevant prices from crypto exchangers.

Notifications You must be signed in to change notification settings

lodthe/cpparserbot

Repository files navigation

Crypto parser

Travis

This is a Telegram bot that provides with relevant information about crypto currency prices from different exchangers (such as Binance, Exmo).

Message example

Stack

Heroku is used to deploy the bot in docker. Chosen CI is Travis.

How to run it

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.

How to try it

Only russian language is supported.

You can try it here: @cpparser_bot

About

A Telegram bot that gives relevant prices from crypto exchangers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published