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 there
Response:hello there
-
/ticket (exchange) (pair)
. Ask for the ticker price of the expecified exchange. Example:/ticker kraken btc/eur
Response:kraken: 6166.3
-
/tickers (pair)
. Ask for the ticker prices of the registered exchanges on the bot Example:/tickers eth/eur
Response: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 eth
Response:ADA/ETH ALGO/ETH ATOM/ETH BAT/ETH ...
-
/register (exchange) (pair)
. Register to get notification of prices updates. Example:/register kraken eth/eur
Response: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/eur
Response: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.