Telegram bot for handle crypto trading actions, built with typescript.
- Create a telegram's bot, check the documention to create one.
- nodejs
For development, this project uses typescript and nodemon for reload of the file changes.
Run npm watch to run the project on development mode.
Run npm run build to build the project from ts to js.
Run npm run serve to start the built project.
-
/echo xxx, reply to the user whatever they send to the bot. Example:/echo hello thereResponse:hello there -
/ticket (exchange) (pair). Ask for the ticker price of the expecified exchange. Example:/ticker kraken btc/eurResponse:kraken: 6166.3 -
/tickers (pair). Ask for the ticker prices of the registered exchanges on the bot Example:/tickers eth/eurResponse:COINBASEPRO: 140.74 KRAKEN: 140.88 -
/trade list (exchange) (currency). Ask for the ticker prices of the registered exchanges on the bot Example:/trade list kraken ethResponse:ADA/ETH ALGO/ETH ATOM/ETH BAT/ETH ... -
/register (exchange) (pair). Register to get notification of prices updates. Example:/register kraken eth/eurResponse:Registed notification for ETH/EUR on kraken Current ticker is 140.31 -
/unregister (exchange) (pair). Register to get notification of prices updates. Example:/unregister kraken eth/eurResponse:Unregisted notification for ETH/EUR on coinbasepro
User's can register to recibe price updates using the command /register ..., the bot sends notifications on every hour, it uses a cron scheduler to notify the users.