# Crypto.com NFT Marketplace Bot Tutorial

By [euphoricPretzels3](https://paragraph.com/@euphoricpretzels3) · 2022-04-05

---

Letting a bot monitor the marketplace so you don’t have to!

Low liquidity on the NFT marketplace leads to users undercutting each other below the “floor price”.

This makes it especially handy to have a Bot monitoring the market for good discounts.

In this example I’ll be using the Loaded Lions Collection. The bot searches the collection’s marketplace and notifies the user whenever a new listing is posted below floor price.

To start you can clone my Repo from this link.git clone [https://github.com/jianminggit/NFT\_BOT.git](https://github.com/jianminggit/NFT_BOT.git)

3.  Your app is now running, but it won’t work because it is missing some environmental variables.
    
4.  Under the app settings, fill in the following Config\_Vars.
    
5.  BOT\_TOKEN: The access code from the telegram bot
    
6.  Heroku URL: https://<Application Name>.herokuapp.com
    
7.  Restart the app to let your configurations take effect.
    
8.  You now have your very own market alert bot!
    
9.  You can skip this part unless you wish to understand how the bot works.
    
10.  Let’s start off by using Node.js and Express to build a simple web server.
    
11.  1.) Web Server
    
12.  We will be hosting this application on Heroku. To prevent the application from going to sleep on the free tier we do a self-call periodically.
    
13.  2.) Heroku Free Tier (inactivity sleep workaround)
    
14.  By making a http request to our own heroku app, we prevent it from sleeping
    
15.  2.) Telegraf API
    
16.  Here we will introduce the Telegram Bot. Here we are using Telegraf API. When the user types /start, it stores the chat ID as a subscriber.
    
17.  3.) Crypto.com NFT API
    
18.  Crypto.com NFT marketplace does not have any official API but you can monitor the network in your Chrome browser to retrieve it.
    
19.  Now that we have the API we are going to make a POST request at intervals to look for updates.
    
20.  4.) Putting it all together
    
21.  Here we will put the above steps together. Additionally, I have included a JSON file of NFT rarity which can be found in my repository to help the user with decision making.
    
22.  Congratulations on creating your very own bot!
    
23.  Repository Link
    
24.

---

*Originally published on [euphoricPretzels3](https://paragraph.com/@euphoricpretzels3/crypto-com-nft-marketplace-bot-tutorial)*
