whittlem / pycryptobot

Python Crypto Bot (PyCryptoBot)
Apache License 2.0
1.98k stars 740 forks source link

Telegram Bot - Responsive & Other Improvements #269

Open Olney1 opened 3 years ago

Olney1 commented 3 years ago

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:

whittlem commented 3 years ago

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.

Olney1 commented 3 years ago

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.