Alert for Crypto Price changes for 5 minute intervals

4 key terminologies :

Symbol : The cryptocurrency name being traded in a particular market (name is combination of BaseAsset + QuoteAsset)

BaseAsset: The cryptocurrency which is being traded.

quoteAsset: The cryptocurrency with which the baseAsset is being traded(bought or sold)

Volume : Trading volume in terms of the BaseAsset.

bin_keys is .py file which stores the Binance API key and Secret key

Login to the Binance API

CONVERTER FUNCTION:

Each of the quoteasset for the symbol is converted in terms of USDT price to have a common price measure. 'final_conv' is the list returned after the conversion.

The below 'if-else' conditions keep looking for the quoteasset to be matched with USDT.

VOLUME FILTER FUNCTION:

After getting the price changes for 5 minute intervals ,top 40 price change symbols are selected and volume of each of these symbols is found and measured against the common measure price received from the quoteAsset_to_usdt_converter() function. Only the symbols which cross the threshold set by the variable 'volume_threshold' are returned as a list 'filtered_top'.

TELEGRAM MESSAGING FUNCTION:

Need to create a telegram bot for yourself.

Creating your bot:

1.On Telegram, search @ BotFather, send him a “/start” message.

2.Send another “/newbot” message, then follow the instructions to setup a name and a username.

3.Your bot is now ready, be sure to save a backup of your API token. This API token is your bot_token.

Main Loop:

Below block runs continuously sending messages on telegram with the cryptoname and percentage change with the top percentage changes.