How to get notifications on new coins listed on Binance with Python - cryptomaton (2024)

Binance seems to be listing several new cryptocurrencies each week. As a means of taking advantage from the significant spike in the price of new coin listings on Binance, I have been testing an open source crypto trading bot in Python that detects new coins the moment they’re listed and attempts to quickly place an order for quick gains.

The tool is still in test mode, however I’ve recently added a new bit of functionality to it that will allow you to receive e-mail notifications when Binance makes the announcement on their page. This will give you precious time to actually buy the coin externally before it gets listed on Binance.

This article will cover how this tool actually works and how you can implement it yourself.

Check out this video if you want to find out more about how this tool can be used alongside the crypto trading algorithm that I’ve been working on. If this is the kind of content you were hoping for, please subscribe!

Ok, now that you know how this links to the bigger strategy, let’s get down to coding!

Install Python and dependencies

If you’re just starting out, the first thing you want to do is install Python on your machine. Simply head over to https://www.python.org/downloads and find a suitable version for your OS.

Now, in order to be able to scrape the Binance Announcement page, and get information about new coin listings ahead of time, we need a scraping tool. We’re going to use Selenium – but first, we need to be able to install Selenium or any other Python packages, and for that we need to install Pip.

Open up your cmd or terminal, and type the following command in:

Alternatively, if you’re using a Mac or Linux system, you may use this:

Once pip is installed, we can start installing Selenium and pyaml:

Now do the same with pyaml – this will enable us to read and write yml files (more on that in a bit).

Create a directory and start coding

With the preparation work out of the way, we can now create a new directory where our Python scraper can live. We’re also going to create a few different Python files, in order to keep our script nice and neat:

  • store_listing.py – helps store new coin symbols from Binance announcements locally
  • config.yml – we need to store our e-mail credentials somewhere.
  • load_config.py
  • send_notification.py – will contain the script to send us an e-mail when a new Binance announcement is made
  • new_listings_scraper.py – the script for scraping the Binance Annoucement page

Store listings in a json file

We’re going to need two simple functions in order to be able to store the symbol of the last coin announced by Binance. def store_listing()will create a simple json file, that will store anything we pass in under the symbol argument. In our case, the symbol of the newly announced listing.

Just as a side note though, this function can be re-used in any number of ways in different scripts, to store information locally, so you might want to make a note of that for when you need to write and save something in Json format.

The second function will find and load an existing json file. We’ll use this to replace the current values in our json file with new ones as future Binance listings get announced. Again – this function can be used for anything.

Send e-mail notifications with Python and smtplib

The next step is to create a script that will send an e-mail notification. Don’t worry if you can’t see how this all ties together, I promise it will all make sense in the end.

Let’s start by creating a config.yml file. Here is where you would store your email address and password. Can be any e-mail address, so you may create a burner one if you’re not comfortable doing this on your main one.

The next step is to create a simple load_config.pyfile that will load our credentials from config.yml.Note that we’ve imported the yaml module that we installed earlier via pip.

Ok now for the actual sending of the e-mail notification, I promise.

Let’s create a file called send_notification.py.In the new file let’s import the smtplib and ssl. We’re also going to import our load_config file that we created above.

Next, we assign the load_config function to a variable called config. This will contain the login details stored in config.yml.

For the actual send – create a function called send notification that takes in one argument (coin).

We’re going to use port 465 and the gmail smtp. Note that Gmail might restrict you from logging in via Python, you may have to enable less secure login from the Gmail settings in order to get this to work.

sent_from and to is our e-mail address as stored in the config file.

Subject – you will notice that we’ve wrapped the subject in f-strings and we’re passing the {coin} variable in. This will contain the symbol listed by Binance, once we include this function in our main scraper file.

In the e-mail bodywe’ll include a link to the Binance Announcements page as well as a google search for the new symbol so that we can easily find out where we can buy it from ahead of it being listed on Binance.

Finally, we’ll use a try and except block in order to trigger an e-mail. We’re now ready to create a Binance scraper in Python using selenium.

Creating the Binance announcements scraper to detect new symbols

The first thing you need to do is download chromedriver.Chromedriver is user by Selenium in order to scrape web pages. Make sure that you download Chromedriver v94, as v95 won’t work with selenium. If you’re having trouble with this, read the error log and download the appropriate version as required. Download here.

Now we’re ready to crate our new_listings_scraper.py file and import some requirements:

Here we’ve imported several functions from the selenium library, along with a binary_pathfor chromedriver, to automatically get the correct path for our driver. Note, you may need to pip install chromedriver_py.We’re also importing os.path and json.

In addition to this, we’re also importing the files that we created previously: store_listing, load_config and send_notification.

Now for the actual scraping of the Binance Announcements page:

Firstly, we assign Options() to chrome_options and we then add_argument(“–headless”). This will hide the actual browser when scraping so you won’t see it on your screen. If you want to see how the scraping happens simply #comment out this line.

We then assign the binary path for our driver, and we give it the URL we want it to scrape by using the driver.get(“URL”) method.

The next step is to create a function that does the scraping. We want to only get the last announcement, and we can do this by targeting the id of the first element with selenium by using latest_announcement = driver.find_element(By.ID, ‘link-0-0-p1’).

How to get notifications on new coins listed on Binance with Python - cryptomaton (1)

As we’re only interested in new coin listings, we’re going to create a brief list called exclusionswhere we will be excluding any announcements that contain the wordsfutures, marginoradds – feel free to edit this as you see fit.

Next we need to enumerate for every character in our latest announcement string. Using index won’t work since index returns the first position where an element is located. For example letter a will be used multiple times in our string, yet its index will always be the position where a is first used. Once the enumlist is ready, it’s time to work some filter magic.

We could just return the entire string “Binance adds…” but, for multiple reasons, we only want the symbol of the new coin to be added. By just getting the symbol, we can automate a system that automatically feeds this symbol to trading algorithm that places the order for us in Binance.

This is where we’re filtering through letters and trying to select only uppercase characters that are close together, and are followed by a space or a “)”. This is how that logic looks like:

uppers = ”.join(item[1] for item in enum if item[1].isupper() and (enum[enum.index(item)+1][1].isupper() or enum[enum.index(item)+1][1]==’ ‘ or enum[enum.index(item)+1][1]==’)’) )

If you start seeing a weird sequence of symbols in your notifications so make sure to add more exclusions for announcements that do not strictly mention a coin listing.

Next we need to define two more functions. One that will store the symbol in a local json file called new_listing.jsonand another function that will run all the necessary functions – let this be main()

The main function will get the last coins, and store the new listings, while the store_new_listingfunction calls the send_notification()function and will send ourselves an e-mail when appropriate.

Now let’s run this:

How to get notifications on new coins listed on Binance with Python - cryptomaton (2024)

FAQs

How to get notified when a new coin is listed on Binance? ›

Alerting MethodsNotification Settings
  1. Receive SMS text message alerts by simply verifying your phone number.
  2. Email is the most basic yet effective way to receive an alert.
  3. Download our app to start receiving push notifications directly on your iOS or Android device:
Apr 26, 2024

Is there a way to know new coins that are going to be listed in Binance? ›

Here's a step-by-step tutor | Symplyjumi on Binance Square. On the homepage, you will see a list of the top cryptocurrencies by market capitalization. To find newly listed coins, click on the "New" tab on the navigation bar at the top of the page.

How do I get my coin listed on Binance? ›

Listing on Binance – steps to follow
  1. Apply online: Fill out forms for token listing.
  2. Listing Options: Choose between Direct, Launchpool, or Launchpad.
  3. Founder/CEO Involvement: Leadership must complete the application.
  4. Engagement: Regular updates, BNB integration, community backing.

How to find upcoming coin listings? ›

One of the best ways to find new crypto coins is to read the news. There are a number of websites and blogs that report on new crypto coins and projects. By reading the news, you can stay up-to-date on the latest developments in the crypto world and find new coins that you may want to invest in.

Which coin will reach $1 in 2024? ›

With a strong development team and growing adoption, Cardano (ADA) has the potential to reach $1, offering a compelling investment opportunity for those looking to capitalize on the next big thing in blockchain technology.

Which coin will boom in 2024? ›

Top 10 Cryptos in 2024
CoinMarket CapitalizationCurrent Price
Ethereum (ETH)$359 billion$2995
Binance Coin (BNB)$85 billion$580
Solana (SOL)$72 billion$162
Ripple (XRP)$28 billion$0.51
6 more rows

Which coin will pump in 2024? ›

Top 10 Cryptos in 2024
CoinMarket CapitalizationCurrent Price
Ripple (XRP)$28 billion$0.51
Dogecoin (DOGE)$22 billion$0.15
Tron (TRX)$10 billion$0.12
Polkadot (DOT)$9.9 billion$6.9
6 more rows

How do I set up Cryptocurrency alerts? ›

You can set a price alert in 3 simple steps:
  1. Visit the Crypto > Market data section and click the Alerts bell icon.
  2. Enter the price for which you want to receive an alert. You can set it in fiat and for some crypto-currencies in Bitcoin.
  3. Click on Create alert.

How do I see all alerts in Binance? ›

Select the List icon at the top right to view All Price Alerts. 7. You can add, delete, or update alerts at any time from this location. Create up to 10 alerts per pair and up to 50 alerts for all pairs.

Why are Binance alerts not working? ›

Binance alerts not working is a very common issue that occurs when the price alert exceeds the 90-day validity period. The Price alert feature on Binance helps stay in touch with the market by notifying once a specified buy or sell price is reached. If using a third-party antivirus or a VPN, disabling it may help.

How do you buy a coin before it is listed on Binance? ›

The most common places to buy a new coin are through Initial Coin Offerings (ICOs) or pre-sales. ICOs are fundraising campaigns where investors can buy tokens or coins before they are listed on exchanges.

What happens when a coin get listed on Binance? ›

The price of the asset rises until a seller appears to sell to the buyer. In the first few seconds of a launch (when a new cryptocurrency is listed), nobody sells because there's supposed to be NO supply. So, all the buyers who want to buy can't find someone selling at the price they want, so the price "rises".

How many total coins are listed on Binance? ›

Binance Exchange Overview

Binance is a Centralized exchange that ranks #1 on BitDegree Exchange Tracker. Binance has a trading volume of $9,338,965,401 in the last 24 hours and $5.89T in the last 7 days. Binance currently has 402 cryptocurrencies, 11 fiat currencies and 1591 markets (cryptocurrency trading pairs).

How to find new crypto coins before release? ›

How to Find and Buy New Crypto Before Listing in 2024
  1. 5 Ways to Find and Buy New Crypto Before Listing. ...
  2. Participate in Crypto Presales. ...
  3. Initial DEX Offerings and Fair Launches. ...
  4. Airdrop Hunting. ...
  5. Participate in Launchpads. ...
  6. Join Project Whitelists and Waitlists.
Apr 22, 2024

What are the next coins to be listed on Coinbase 2024? ›

10 New upcoming Coinbase Listings in 2024
NamePriceCirculating Supply
1. QORPO WORLD$0.4113040050.39M
2. Jupiter$1.200000001.35B
3. Pixels$0.38262100771.04M
4. Ronin$3.0700324.02M
4 more rows
May 8, 2024

Top Articles
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 6549

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.