On this page

latest contributor to this doc

Last Edit:


How To Become a Liquidity Provider for Komodo DeFi Framework with Telegram Notifications using Docker


git clone https://github.com/komodohowto/docker-atomicdex-api-marketmaker.git


cd docker-atomicdex-api-marketmaker/
docker build -t komodohowto/dev-marketmaker2 .

  • Open your Telegram App.
  • Search for the bot named @BotFather and start a chat with it
  • Send the message /help to receive a list of commands available
  • Send the message /newbot to create a new bot
  • Send a message containing the required name of the bot. It must end in bot. Like this, for example: TetrisBot or tetris_bot.
  • Once the bot is created, take note of the username (hereby referred as BOT_USERNAME) and bot token (hereby referred as BOT_TOKEN) from the message sent to you.
  • Start a chat with the new bot created
  • Go to the url: https://api.telegram.org/bot<YourBOTToken>/getUpdates. Replace the <YourBOTToken> with the BOT_TOKEN
  • In the response, look for the key: chat
"chat": {
"id": "7xxxxxxxxxx",
"first_name": "gxxxxxxx",
"type": "private"
  • the id in the above json is hereby referred as BOT_CHATID

Now we have all the details needed to start our Marketmaker with Telegram bot notifications enabled!


docker run -it -e BOT_TOKEN='989XXXXXX:AAXXXXXXXXXXXXeso' -e BOT_CHATID='93XXXXX6' -e BOT_USERNAME='mymarketmakerbot' komodohowto/dev-marketmaker2

Replace the values BOT_TOKEN='989XXXXXX:AAXXXXXXXXXXXXeso' -e BOT_CHATID='93XXXXX6' -e BOT_USERNAME='mymarketmakerbot' with the ones belonging to your bot

A message will be received on your bot like this:




This outputs the PID within the docker container, the passphrase & the rpc_password that is used with the packaged scripts.



The helpful telegram bot sends this notification for this demo:




Which our bot helpfully relays to us!


Now that we can see the orderbooks are in a simple JSON schema, it is trivial to create a rudimentary GUI application.