Telegram bot for Terra tokens swap rate monitoring with automated notifications
- Node.js installed
- Telegram bot token (If you don't have a telegram bot created just go to https://core.telegram.org/bots#3-how-do-i-create-a-bot and follow the steps)
- Add your telegram bot token to .env.sample file
- Rename .env.sample file to .env
- Run
npm install
oryarn install
- Run
node index.js
- Add your telegram bot token to .env.sample file
- Rename .env.sample file to .env
- Deploy to cloud
help
(list all commands available)swap [assetA] [assetB]
(get rate for assetA-assetB pair) Example: /swap spec ustautoswap [assetA] [assetB] [swaprate_higher_than] [swaprate_lower_than]
(enable automatically checks for the assetA-assetB swap rate - bot will send notifications every time the swap rate is over [swaprate_higher_than] or under [swaprate_lower_than]) Example: /autoswap lota ust 1.15 1.02autoswap [assetA] [assetB]
(turns on/off auto monitor for an already added pair) Example: /autoswap lota ustquery_frequency [frequency in ms]
(configure frequency of the bot to monitor swap rate - Default value: 10 sec) - Example: /query_frequency 360000 - which means every 5 minutesswaprate_higherthan [assetA] [assetB] [rate]
(bot will send notifications every time the swap rate is higher than the amount defined based on the query frequency for assetA-assetB pair) Example: /swaprate_higherthan lota ust 1.15swaprate_lowerthan [assetA] [assetB] [rate]
(bot will send notifications every time the swap rate is lower than the amount defined based on the query frequency for assetA-assetB pair) - Example: /swaprate_lowerthan lota ust 1.02list_auto
(returns a list with all the current pairs with swap rate auto-monitoring enabled)
Did you like the bot? Send a tip! =)
Terra wallet terra1exw8kvva3s7yqjkeakunagmnjc2r95h0w2ekvy