Watchlist Telegram - cyberjunky/3commas-cyber-bots GitHub Wiki

Watchlist Telegram bot helper named watchlist_telegram.py

Type = start deal trigger

What does it do?

Combination of watchlist and watchlist_hodloo because you need multiple phone numbers to run multiple scripts using a Telegram connection. So, this script combines (for now) these two scripts into one.

How does it work?

This script does exactly what is already described at watchlist and watchlist_hodloo. Improvement has been made for discovery of the correct Telegram channels to listen to and a little bit more flexible configuration.

Author of this script is amargedon.

Configuration

The watchlist bot helper config file uses this layout:

  • timezone - timezone. (default is 'Europe/Amsterdam')

  • debug - set to true to enable debug logging to file. (default is False)

  • logrotate - number of days to keep logs. (default = 7)

  • 3c-apikey - your 3Commas API key value.

  • 3c-apisecret - your 3Commas API key secret value.

  • 3c-apikey-path - path to your own generated RSA private key, or empty.

  • tgram-phone-number - your Telegram phone number, needed for first time authorisation code. (session will be cached in watchlist.session)

  • tgram-api-id - your telegram API id.

  • tgram-api-hash - your telegram API hash.

  • notifications - set to true to enable notifications. (default = False)

  • notify-urls - one or a list of apprise notify urls, each in " " seperated with commas. See Apprise website for more information.

  • [custom]

  • channel-name - name of the chat channel to monitor.

  • usdt-botids - a list of bot (USDT multipair) id's to use. (can also be using BUSD)

  • btc-botids - a list of bot (BTC multipair) id's to use.

  • [hodloo_5]

  • exchange - exchange channel to monitor on Telegram (Bittrex, Binance or Kucoin).

  • bnb-botids - list of zero or more botids for deals with BNB as base.

  • btc-botids - list of zero or more botids for deals with BTC as base.

  • busd-botids - list of zero or more botids for deals with BUSD as base.

  • eth-botids - list of zero or more botids for deals with ETH as base.

  • eur-botids - list of zero or more botids for deals with EUR as base.

  • usdt-botids - list of zero or more botids for deals with USDT as base.

  • [hodloo_10]

  • exchange - exchange channel to monitor on Telegram (Bittrex, Binance or Kucoin).

  • bnb-botids - list of zero or more botids for deals with BNB as base.

  • btc-botids - list of zero or more botids for deals with BTC as base.

  • busd-botids - list of zero or more botids for deals with BUSD as base.

  • eth-botids - list of zero or more botids for deals with ETH as base.

  • eur-botids - list of zero or more botids for deals with EUR as base.

  • usdt-botids - list of zero or more botids for deals with USDT as base.

  • [smarttrade]

  • channel-names - name of the chat channels to monitor.

  • amount-usdt - amount of USDT to use for a single smarttrade.

  • amount-btc - amount of BTC to use for a single smarttrade.

Example: (keys are bogus)

[settings]
timezone = Europe/Amsterdam
debug = False
logrotate = 14
3c-apikey = 4mzhnpio6la4h1158ylt2
3c-apisecret = 4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt
3c-apikey-path = 
tgram-phone-number = +316512345678
tgram-api-id = 1234566
tgram-api-hash = o6la4h1158ylt4mzhnpio6la
tgram-channel = mytriggerchannel
notifications = True
notify-urls = [ "tgram://9995888120:BoJPor6opeHyxx5VVZPX-BoJPor6opeHyxx5VVZPX/" ]
exchange = Binance
mode = Telegram

[custom]
channel-name = MyChannel
usdt-botids = [ 123456, 129011 ]
btc-botids = [ 789012 ]

[hodloo_5]
exchange = Binance
bnb-botids = [12345, 67890]
btc-botids = [12345, 67890]
busd-botids = [12345, 67890]
eth-botids = [12345, 67890]
eur-botids = [12345, 67890]
usdt-botids = [12345, 67890]

[hodloo_10]
exchange = Bittrex
bnb-botids = [12345, 67890]
btc-botids = [12345, 67890]
busd-botids = [12345, 67890]
eth-botids = [12345, 67890]
eur-botids = [12345, 67890]
usdt-botids = [12345, 67890]

[smarttrade]
channel-name = [ 'Channel 1', 'Channel 2' ]
amount-usdt = 100.0
amount-btc = 0.001