pycryptobot icon indicating copy to clipboard operation
pycryptobot copied to clipboard

Telegram Bot - Responsive & Other Improvements

Open Olney1 opened this issue 3 years ago • 2 comments

It would be great to be able to message the bot to remotely control it and retrieve quick updates on demand when working remotely.

UPDATE = Latest line print

BALANCE - balance on account (portfolio specific for Coinbase)

RESTART = restart bot

STOP = stop bot

REPORT = latest P&L tracker

SELL = Quick sell positions (useful if you want to override bot config quickly)

BUY = Quick buy into a position (useful in rapidly changing bull conditions or if Elon Musk tweets!)


Other Improvements:

  • Bot notifies via Telegram when stopped.
  • Bot notifies via Telegram when restart is successful on autorestart for exception (currently the bot notifies when restart on exception is triggered but does not indicate that the restart was successful or that exception was resolved).
  • Bot notifies more detailed profit/loss breakdown on each sell via Telegram with price bought, fees and sell price.

Olney1 avatar May 27 '21 23:05 Olney1

The way you would do this is creating a secure REST API which controls the bot. I think you would also need to implement some sort of message queue. The REST would add to the queue what needs to be done and then the bot would action those requests. Just an idea.

I'll add it to the roadmap. Maybe one of the contributors will want to pick this up.

whittlem avatar May 28 '21 13:05 whittlem

Thanks. Could we get just a simple Telegram notification in the meantime (or worked on first) when restart is successful or unsuccessful on autorestart for exceptions or API issues? Currently the bot notifies when restart on exception is triggered, however it does not indicate that the restart was successful or that exception was resolved.

Also, a simple notification when bot stops as well - which can link into this if autorestart does not work.

Olney1 avatar May 31 '21 20:05 Olney1