Crypto_bot 🤖 sending emergency updates if the selected currency is below a certain threshold you define, or just regular reports every 5 minutes to your Telegram. 💰
I can easily fall into the situation where I staring at the screens waiting for currency updates real-time, so instead of wasting time on that, I've created a little bot with the help of Ruby, Telegram and IFTTT. For testing and validation I've used...
- First you will need to register on IFTTT, and create a webhook with a custom event name and message. It's important to have {{value1}} inserted in the message so you can actually see the values returned from the API.
- Check the IFTTT documentation to get your IFTTT key, so you can use it in the webhook, I highlighted where to insert in the request link
- Install the IFTTT app on your phone, this is where the emergency updates are coming (Free service)
- Install Telegram (so you have a number), after you have a registration on IFTTT, you neeed to approve the connection between IFTTT and Telegram to communicate with each other.
- Run the ruby app on your local machine or on a server and receive updates 💰
- Changing the threshold of the price you want to receive emergency updates
- Changing the frequency of the regular price updates on Telegram
The list of available currencies from coinmarketcap: https://coinmarketcap.com/all/views/all/ Example of JSON coming from the coinmarket API: https://api.coinmarketcap.com/v1/ticker/bitcoin/