Telegram notifications workaround (Binance only)
#1
Question 
Currently Gekko supports Telegram notifications via CLI only.

I'm running tradebot (Web UI) during a week now, and wanted to be notified about live trades.

The solutions (Binance only) is the following: https://github.com/andresilvasantos/bitprophet

As soon as you have BitProphet installed, open node_modules/bitprophet/bitprophet.js and find the following string:

Code:
chatBot.sendMessage(emojiStr + " " + oType + type + " - " + vars.pairs[symbol].chatName() + "\t" + side + " "+

            quantityFixed + "@" + exchUtils.fixPrice(symbol, price) + fill)

 Replace it with:

Code:
if((vars.pairs[symbol].chatName()=="#SNT/ETH")&&(type=="Traded")){
chatBot.sendMessage(emojiStr + " " + oType + type + " - " + vars.pairs[symbol].chatName() + "\t" + side + " "+
            quantityFixed + "@" + exchUtils.fixPrice(symbol, price) + fill)}
}

Where "#SNT/ETH" is pair your are trading and want to be notified about.

After that run BitProphet as a service, similar to: https://github.com/askmike/gekko/wiki/Ge...th-Systemd 

Hope it would be helpful not only for me  Wink
  Reply


Forum Jump:


Users browsing this thread: