I want to create a discord webhook bot that will send messages when a token meets requirements to the discord, it will be a smart-token scanner for ethereum.

It will consistently run through a check of using a fetch tokens endpoint, and then if the tokens meets the following first requirements
https://d2s0ztom42shsu.cloudfront.net/defi/quotation/v1/rank/sol/swaps/5m?orderby=Volume&direction=desc&limit=50

Sample Response from api:
{
  "code": 0,
  "msg": "success",
  "data": {
    "rank": [
      {
        "id": 615079,
        "chain": "eth",
        "address": "0x240cd7b53d364a208ed41f8ced4965d11f571b7a",
        "symbol": "DOGGO",
        "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0x240cd7b53d364a208ed41f8ced4965d11f571b7a.png?claimId=eTv9hxwy1fwKSEtmB8CNwH",
        "price": 0.000018874816,
        "price_change_percent": -1.2358791,
        "price_change_percent1m": -0.64910684,
        "price_change_percent5m": -1.2358791,
        "price_change_percent1h": -17.073249,
        "swaps": 60,
        "volume": 76522.394,
        "liquidity": 381611.82890999,
        "market_cap": 7940446.3,
        "hot_level": 0,
        "call_number": 0,
        "smart_buy_24h": 75,
        "smart_sell_24h": 88,
        "pool_creation_timestamp": 1726860479,
        "open_timestamp": 1726860587,
        "holder_count": 3736,
        "is_show_alert": false,
        "buy_tax": 0,
        "sell_tax": 0,
        "is_honeypot": 0,
        "is_open_source": 1,
        "renounced": 1,
        "twitter_username": "ctodoggo",
        "website": null,
        "telegram": "https://t.me/doggoercCTO",
        "buys": 35,
        "sells": 25,
        "initial_liquidity": null,
        "lockInfo": {
          "isLock": true,
          "lockDetail": [
            {
              "percent": "0.9999999999999999451651446894369982701073",
              "pool": "burnt🔥",
              "isBlackHole": true
            }
          ],
          "lockTag": [
            "blackhole"
          ],
          "lockPercent": 0.95,
          "leftLockPercent": 0.05
        },
        "creator_token_status": "creator_add_liquidity",
        "creator_close": false,
        "rat_trader_amount_rate": 0,
        "cto_flag": 0
      },
      {
        "id": 1076,
        "chain": "eth",
        "address": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
        "symbol": "MKR",
        "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2.png",
        "price": 1607.5492,
        "price_change_percent": -0.17730989,
        "price_change_percent1m": -0.048405705,
        "price_change_percent5m": -0.17730989,
        "price_change_percent1h": 0.26010185,
        "swaps": 4,
        "volume": 73681.881,
        "liquidity": 28160590.7737175,
        "market_cap": 1490445700,
        "hot_level": 0,
        "call_number": 0,
        "smart_buy_24h": 0,
        "smart_sell_24h": 0,
        "pool_creation_timestamp": 1620175942,
        "open_timestamp": 1592961620,
        "holder_count": 17759,
        "is_show_alert": false,
        "buy_tax": 0,
        "sell_tax": 0,
        "is_honeypot": 0,
        "is_open_source": 1,
        "renounced": 1,
        "twitter_username": "PulseChainDFI",
        "website": null,
        "telegram": "https://t.me/PulseMKR",
        "buys": 0,
        "sells": 4,
        "initial_liquidity": null,
        "lockInfo": {
          "isLock": false,
          "lockDetail": [],
          "lockTag": [],
          "lockPercent": 0,
          "leftLockPercent": 1
        },
        "creator_token_status": "creator_hold",
        "creator_close": false,
        "rat_trader_amount_rate": 0,
        "cto_flag": 0
      },
      {
        "id": 610630,
        "chain": "eth",
        "address": "0x28561b8a2360f463011c16b6cc0b0cbef8dbbcad",
        "symbol": "MOODENG",
        "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0x28561b8a2360f463011c16b6cc0b0cbef8dbbcad.png",
        "price": 0.000028308748,
        "price_change_percent": -4.5785479,
        "price_change_percent1m": 1.2692667,
        "price_change_percent5m": -4.5785479,
        "price_change_percent1h": 5.8141893,
        "swaps": 34,
        "volume": 64969.41,
        "liquidity": 472653.717448214,
        "market_cap": 11909207,
        "hot_level": 1,
        "call_number": 0,
        "smart_buy_24h": 65,
        "smart_sell_24h": 57,
        "pool_creation_timestamp": 1726431167,
        "open_timestamp": 1726431167,
        "holder_count": 3151,
        "is_show_alert": false,
        "buy_tax": 0,
        "sell_tax": 0,
        "is_honeypot": 0,
        "is_open_source": 1,
        "renounced": 1,
        "twitter_username": "MOODENGCTO",
        "website": "https://moodeng.vip/",
        "telegram": "https://t.me/moodengethcto",
        "buys": 21,
        "sells": 13,
        "initial_liquidity": null,
        "lockInfo": {
          "isLock": true,
          "lockDetail": [
            {
              "percent": "0.9999999999999999445894677113164748659831",
              "pool": "burnt🔥",
              "isBlackHole": true
            }
          ],
          "lockTag": [
            "blackhole"
          ],
          "lockPercent": 0.95,
          "leftLockPercent": 0.05
        },
        "creator_token_status": "creator_add_liquidity",
        "creator_close": false,
        "rat_trader_amount_rate": 0,
        "cto_flag": 0
      },


1.  It will then get the token address from each specific token fron the fetch tokens endpoint.
2. checks the token addresses arent blacklisted in the blacklist.json
2. Now it will use another api endpoint to get the token data from the address:
https://d2s0ztom42shsu.cloudfront.net/defi/quotation/v1/tokens/eth/TOKENADDRESSHERE
3. It should check each token one by one for each token address it got from the trending endpoint.
Here is a example response form the token info endpoint:
{
  "code": 0,
  "msg": "success",
  "data": {
    "token": {
      "address": "0xb21c1d75e0dea3ca9519139e0eed94b00dfbb495",
      "symbol": "SPACEWALK",
      "name": "Polaris Dawn",
      "decimals": 9,
      "price": 0.000006258321118571,
      "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0xb21c1d75e0dea3ca9519139e0eed94b00dfbb495.png?claimId=aVKpYRlJb9islUd4XkrPp7",
      "price_1m": 0.000006855863727772,
      "price_5m": 0.000005305309216833,
      "price_1h": 0.000002986082351715,
      "price_6h": 0.00000112166972708,
      "price_24h": 0.000001547388511288,
      "volume_24h": 251958.404717923,
      "swaps_5m": 62,
      "swaps_1h": 261,
      "swaps_6h": 382,
      "swaps_24h": 543,
      "liquidity": 75309.2072501278,
      "max_supply": null,
      "total_supply": 69420000000,
      "holder_count": 441,
      "biggest_pool_address": "0x76c678417ae9c46b1e6a8f450c80af024f41307a",
      "chain": "eth",
      "creation_timestamp": null,
      "open_timestamp": 1724713763,
      "circulating_supply": null,
      "high_price": 0.000028089958774615,
      "high_price_timestamp": 1726066811,
      "low_price": null,
      "low_price_timestamp": null,
      "buys_1m": 8,
      "sells_1m": 4,
      "swaps_1m": 12,
      "volume_1m": 11298.2663024611,
      "buy_volume_1m": 5640.09139704949,
      "sell_volume_1m": 5658.17490541161,
      "net_in_volume_1m": -18.08351,
      "buys_5m": 35,
      "sells_5m": 27,
      "volume_5m": 51072.9409537945,
      "buy_volume_5m": 27625.5090347577,
      "sell_volume_5m": 23447.4319190369,
      "net_in_volume_5m": 4178.07712,
      "buys_1h": 160,
      "sells_1h": 101,
      "volume_1h": 145143.870223045,
      "buy_volume_1h": 78490.813402505,
      "sell_volume_1h": 66653.05682054,
      "net_in_volume_1h": 11837.75658,
      "buys_6h": 248,
      "sells_6h": 134,
      "volume_6h": 177848.522550653,
      "buy_volume_6h": 99868.6892824671,
      "sell_volume_6h": 77979.8332681855,
      "net_in_volume_6h": 21888.85601,
      "buys_24h": 336,
      "sells_24h": 207,
      "buy_volume_24h": 135574.07326258,
      "sell_volume_24h": 116384.331455342,
      "net_in_volume_24h": 19189.74181,
      "fdv": 434452.652051227,
      "market_cap": 434452.652051227,
      "circulating_market_cap": null,
      "link": {
        "geckoterminal": "https://www.geckoterminal.com/eth/tokens/0xb21c1d75e0dea3ca9519139e0eed94b00dfbb495",
        "gmgn": "https://gmgn.ai/eth/token/0xb21c1d75e0dea3ca9519139e0eed94b00dfbb495"
      },
      "creator_address": "0x7d1c7a212776c4c31bdb94061fd9c84d2e54747c",
      "is_open_source": 1,
      "is_honeypot": 0,
      "buy_tax": 0,
      "sell_tax": 0,
      "lp_holders": [
        {
          "tag": "",
          "value": null,
          "address": "0x000000000000000000000000000000000000dead",
          "balance": "8.120898965016125833",
          "percent": "0.999999999999999876",
          "NFT_list": null,
          "is_locked": 1,
          "is_contract": 0
        },
        {
          "tag": "Null Address",
          "value": null,
          "address": "0x0000000000000000000000000000000000000000",
          "balance": "0.000000000000001",
          "percent": "0.000000000000000123",
          "NFT_list": null,
          "is_locked": 1,
          "is_contract": 0
        }
      ],
      "warning": {
        "show": false,
        "msg": ""
      },
      "social_links": {
        "id": 1383838,
        "chain": "eth",
        "address": "0xb21c1d75e0dea3ca9519139e0eed94b00dfbb495",
        "twitter_username": "muskspacewalk",
        "website": null,
        "telegram": "https://t.me/SPACEWALK_ERC",
        "description": null,
        "bitbucket": null,
        "discord": null,
        "facebook": null,
        "github": null,
        "instagram": null,
        "linkedin": null,
        "medium": null,
        "reddit": null,
        "tiktok": null,
        "youtube": null,
        "updated_at": 1726977006,
        "verify_status": 0
      },
      "launchpad": null,
      "pool_info": {
        "address": "0x76c678417ae9c46b1e6a8f450c80af024f41307a",
        "exchange": "univ2",
        "token0_address": "0xb21c1d75e0dea3ca9519139e0eed94b00dfbb495",
        "token1_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "base_address": "0xb21c1d75e0dea3ca9519139e0eed94b00dfbb495",
        "quote_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "quote_symbol": "WETH",
        "liquidity": 75309.2072501278,
        "base_reserve": "6043873088.33094476700000000000",
        "quote_reserve": "14.55927547889417667400",
        "initial_liquidity": 5363.62247995952,
        "initial_base_reserve": "65949000000.00000000000000000000",
        "initial_quote_reserve": "1.00000000000000000000",
        "creation_timestamp": 1724713763,
        "quote_vault_address": "0x76c678417ae9c46b1e6a8f450c80af024f41307a",
        "base_vault_address": "0x76c678417ae9c46b1e6a8f450c80af024f41307a",
        "base_reserve_value": "37824.4985866669000908799913458638",
        "quote_reserve_value": "37984.539519623059746065051295780742"
      },
      "flags": [],
      "is_in_token_list": false,
      "lockInfo": {
        "isLock": true,
        "lockDetail": [
          {
            "percent": "0.9999999999999998768609233647799536839417",
            "pool": "burnt🔥",
            "isBlackHole": true
          }
        ],
        "lockTag": [
          "blackhole"
        ],
        "lockPercent": 0.95,
        "leftLockPercent": 0.05
      },
      "hot_level": 0,
      "is_show_alert": false,
      "renounced": 1,
      "call_num_24h": 0,
      "smart_buy_24h": 0,
      "smart_sell_24h": 0,
      "creator_token_balance": "0",
      "creator_close": true,
      "creator_token_status": "creator_add_liquidity",
      "twitter_name_change_history": [],
      "top_10_holder_rate": 0.263437,
      "dexscr_ad": 0,
      "dexscr_update_link": 1,
      "cto_flag": 0
    },
    "vote": {
      "like_count": 0,
      "unlike_count": 0
    },
    "my_vote": {
      "liked": -1
    }
  }
}

It should then do the following checks to see if it meets the requirements to be sent to discord.

1. market_cap is between 25,000 and 1,200,000
2. open_timestamp (check the open timestamp which is a unix timestamp) the token should have opened less then 4 hours ago.
3. swaps_5m should be above 10 or more 
4. buy_volume_5m should be higher then sell_volume_5m
5. price should be higher then price_5m (indicating a raise in price)
6. in lockInfo it should also check if isLock is true and lockPercent is 0.90 or higher
7. in pool_info it should check if initial_quote_reserve is greater then 1.0
8. check if volume_5m is greater then 25000
9. check if "is_open_source": 1,
10. check if "is_honeypot": 0,
11. check if "renounced": 1,
12. check if top_10_holder_rate is 0.37 or less
13. check if buys_5m is greater then sells_5m
14. check if price is higher then price_1h
15. check if holder_count is greater then 40
16. check if buy_volume_24h is greater then sell_volume_24h
17. check if buy_volume_1h is greater then 40000

If a token meets all of these requirements then it should be sent to a discord channel using the webhook url as a constant.

I also put some notes in my basic setup 

 message_content = {
            "content": "**🔔 Seekr ETH Trending**",
            "embeds": [
                {
                    "title": f"{token_symbol} ({token_name})",
                    "description": (
                        f"**💰 Market Cap:** **{market_cap_str}**\n"
                        f"**📈 Volume (5m):** {volume_str}\n"
                        f"**🔗 Dexscreener Paid:** {'✅' if token.get('dexscr_update_link', 0) > 0 else '❌'}\n"
                        f"**🚧 CTO:** {'✅' if token_details.get('data', {}).get('token', {}).get('cto_flag', 0) == 1 else '❌'}\n"
                        f"**📅 Created:** (open_timestamp converted to minutes ago (set this up)  
                        f"**📍 Token Address:** `{token_address}`\n"
                        f"**🌟 Creator Percentage:**       "creator_token_balance"\n"
                        f"**💬 Telegram:** {token_details.get('data', {}).get('token', {}).get('social_links', {}).get('telegram', 'N/A')}\n"
                        f"**🌎 Website:** {token_details.get('data', {}).get('token', {}).get('social_links', {}).get('website', 'N/A')}\n"
                        f"**🐦 Twitter:** {token_details.get('data', {}).get('token', {}).get('social_links', {}).get('twitter_username', 'N/A')}\n"
                        f"**📊 Bullx Chart:** [View Chart](https://dexspy.io/eth/token/token_address)\n"
                        f"**📊 Photon:** [View Chart](https://photon.tinyastro.io/en/lp/{token_address})\n"
                        f"**📊 Dexscreener:** [View Chart](https://dexscreener.com/ethereum/{token_address})\n"
                        f"**🔗 Etherscan:** [View Details](https://etherscan.io/address/{token_address})\n\n"
                    
                    ),
                    "thumbnail": {
                        "url": logo_url
                    },
                    "color": Make the color navy blue
                }
            ]
        }

Then it should also include at the bottom of the embed if there is notable holders and which categories those notable holders fall under from the wallet jsons fresh wallets, kol wallets, smart wallets it should read the json and check

It should then check if those wallets are holders in the token its sending to discord (this doesnt effect it being sent to discord or not but its to show notable holders)

To check the holders of the token thats being sent to telegram use https://d2s0ztom42shsu.cloudfront.net/defi/quotation/v1/tokens/top_holders/eth/TOKENADDRESSHERE with token address here being the token address of the token its sending to discord.

API EXAMPLE OUTPUT FOR HOLDERS BELOW That it where it will check if any address in the holders list matches any address in the wallet jsons for fresh wallets, kol wallets, smart wallets

It any wallets match then include them like this in the embed:
🏆 Notable Holders:
KOL Wallets Holding This Token (1):
DZGGYbZovLfWZuvLGDLZtKK82mno3BKpfyYw22ZEb8mp (Win Rate: 51.92% | ETH Balance: (eth balance gotten from api for holders eth_balance if it matched))

{
  "code": 0,
  "msg": "success",
  "data": [
    {
      "address": "0x76c678417ae9c46b1e6a8f450c80af024f41307a",
      "addr_type": 2,
      "amount_cur": 5386047229.95688,
      "usd_value": 42956.2292744587,
      "cost_cur": 0,
      "sell_amount_cur": 0,
      "sell_amount_percentage": 0,
      "sell_volume_cur": 0,
      "buy_volume_cur": 0,
      "buy_amount_cur": 5386047229.95688,
      "netflow_usd": 0,
      "netflow_amount": 5386047229.95688,
      "buy_tx_count_cur": 0,
      "sell_tx_count_cur": 0,
      "wallet_tag_v2": "TOP1",
      "eth_balance": "0",
      "sol_balance": "0",
      "trx_balance": "0",
      "balance": "0",
      "profit": 0,
      "realized_profit": 0,
      "unrealized_profit": 0,
      "profit_change": null,
      "amount_percentage": 0.0775863905208424,
      "avg_cost": null,
      "avg_sold": null,
      "tags": [],
      "maker_token_tags": [
        "top_holder"
      ],
      "name": null,
      "twitter_name": null,
      "tag_rank": {

      },
      "last_active_timestamp": 1726980167,
      "accu_amount": 0,
      "accu_cost": 0,
      "cost": 0,
      "total_cost": 0
    },
    {
      "address": "0x2baf976d2e18324734ae7afe8e30f278d9df9324",
      "addr_type": 0,
      "amount_cur": 2582985997.58649,
      "usd_value": 20600.5135097804,
      "cost_cur": 1732.25014150727,
      "sell_amount_cur": 0,
      "sell_amount_percentage": 0,
      "sell_volume_cur": 0,
      "buy_volume_cur": 1732.25014150727,
      "buy_amount_cur": 2582985997.58649,
      "netflow_usd": 1732.25014150727,
      "netflow_amount": 2582985997.58649,
      "buy_tx_count_cur": 3,
      "sell_tx_count_cur": 0,
      "wallet_tag_v2": "TOP2",
      "eth_balance": "1521968199713570408",
      "sol_balance": "0",
      "trx_balance": "0",
      "balance": "1521968199713570408",
      "profit": 18868.2633682731,
      "realized_profit": 0,
      "unrealized_profit": 18868.2633682731,
      "profit_change": 10.8923433839961,
      "amount_percentage": 0.0372080956149019,
      "avg_cost": 6.70638610943251e-7,
      "avg_sold": null,
      "tags": [],
      "maker_token_tags": [
        "top_holder"
      ],
      "name": null,
      "avatar": null,
      "twitter_username": null,
      "twitter_name": null,
      "tag_rank": {

      },
      "last_active_timestamp": 1726707791,
      "accu_amount": 2582985997.58649,
      "accu_cost": 1732.25014150727,
      "cost": 1732.25014150727,
      "total_cost": 1732.25014150727
    },

After it sends the message to discord it should create a token_data.json that looks like this (these jsons should be auto created if it doesnt exist and auto updated):

{"0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2": {"initial_market_cap": 40569.3840143865, "reported_multiples": [], "last_sent_time": "2024-09-05T12:54:36.938851"}, "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2": {"initial_market_cap": 36667.4844652576, "reported_multiples": [], "last_sent_time": "2024-09-05T13:48:03.699107"}, "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2": {"initial_market_cap": 36667.4844652576, "reported_multiples": [], "last_sent_time": "2024-09-05T13:48:03.699107"}}

It should save the token address, initial market cap and last sent time will be the time it was sent to the discord channel, it will add to this token data as new tokens that are checked meet requirements.
Once a token is sent to discord it should also be added to the blacklist.json. Blacklist.json will keep tokens from being sent to discord twice.
The blacklist.json should be auto created if it doesnt exist and auto updated.

Every 1 minute the script should on a seperate concurrent task be checking the token_data.json token addresses and then calling https://d2s0ztom42shsu.cloudfront.net/defi/quotation/v1/tokens/eth/TOKENADDRESSHERE again to get the current market cap of the specific token its checking from token_data.json
If the market cap has increased 100% then that means its a multiple of 2 that will be saved into the token_data.json. 
Make a constant at the top of the script for which multiples it should save when its checking the current market caps of the tokens in token_data with the initial market capMULTIPLES = [2, 3, 4, 5, 10, 15, 20, 50, 100]  # Market cap increase multiples to notify


Also have a market cap update webhook which will be a seperate discord webhook that will send messages when tokens its checking the market cap updates for reach a multiple, it should only report multiples once and it will report the highest multiple first, it will post a message like this:
Thats a discord mebed to the market cap update update: 
Seekr ETH Trending Update: WOWO DOG (WOWO)
🚀 Market Cap Increased 2x

📍 Token Address: View Token (which should be a button you can click on and will take you to https://etherscan.io/address/TOKENADDRESSHERE)
📈 Current Market Cap: $275,996.66
🔗 Photon: View Chart (View chart button takes you to https://photon.tinyastro.io/en/lp/{token_address})
🔗 Bullx: View Chart (View chart button takes you to https://dexspy.io/eth/token/{token_address})


Now we also want to add other functionality for that it will check every 6hours and create jsons for each of these wallet categories that it will get wallet info from the endpoints:
# Define endpoints for wallet categories
ENDPOINTS = {
    'smart_wallets': "https://d2s0ztom42shsu.cloudfront.net/defi/quotation/v1/rank/eth/wallets/7d?tag=smart_degen&orderby=pnl_7d&direction=desc",
    'kol_wallets': "https://d2s0ztom42shsu.cloudfront.net/defi/quotation/v1/rank/eth/wallets/7d?tag=reowned&orderby=pnl_7d&direction=desc",
    'fresh_wallets': "https://d2s0ztom42shsu.cloudfront.net/defi/quotation/v1/rank/eth/wallets/7d?tag=fresh_wallet&orderby=pnl_7d&direction=desc"
}

It should check for wallets that have a winrate_7d above 0.5 and realized_profit above 25000 and eth_balance above 1

if wallets from those endpoints that it checks every 6 hours OR if the jsons dont exist create the jsons and call the endpoints and save the data to the jsons.

it should save wallets to the jsons from each of the endpoints to specific jsons for each endpoint like smart_wallets.json, kol_wallets.json, fresh_wallets.json

each wallet should be saved with its address and the winrate_7d

[
    {
        "address": "FYGgfgZFeVxnJKF2RS6MKYHBsUpfJdCwumzkPpxWPM4u",
        "winrate_7d": 1
    },
    {
        "address": "EKKXHhUTuRzXct7xCd9RCVDwWgTAAzG9jrMyUY6wmJMV",
        "winrate_7d": 1
    }
]


API EXAMPLE OUTPUT FOR WALLET ENDPOINTS BELOW
 {
  "code": 0,
  "msg": "success",
  "data": {
    "rank": [
      {
        "wallet_address": "0xd961fd98532e5f34c23391d5971e70e6ecbeab19",
        "address": "0xd961fd98532e5f34c23391d5971e70e6ecbeab19",
        "realized_profit": 389176.876899016,
        "buy": 0,
        "sell": 1,
        "last_active": 1726701131,
        "realized_profit_1d": 0,
        "realized_profit_7d": 4297.22453381848,
        "realized_profit_30d": 33075.8134816629,
        "pnl_30d": 8.55477409850286,
        "pnl_7d": 668431.255455615,
        "pnl_1d": null,
        "txs_30d": 7,
        "buy_30d": 1,
        "sell_30d": 6,
        "balance": 1.84333549403358,
        "eth_balance": 1.84333549403358,
        "sol_balance": 1.84333549403358,
        "trx_balance": 1.84333549403358,
        "twitter_username": null,
        "avatar": null,
        "ens": null,
        "tag": null,
        "tag_rank": {
          "smart_degen": 30
        },
        "nickname": null,
        "tags": [
          "smart_degen"
        ],
        "maker_avatar_color": "#FC7345",
        "twitter_name": null,
        "followers_count": 0,
        "is_blue_verified": false,
        "twitter_description": null,
        "name": null,
        "avg_hold_time": 2313716,
        "recent_buy_tokens": [],
        "winrate_7d": 1,
        "avg_cost_7d": 290844.7318,
        "pnl_lt_minus_dot5_num_7d": 0,
        "pnl_minus_dot5_0x_num_7d": 0,
        "pnl_lt_2x_num_7d": 0,
        "pnl_2x_5x_num_7d": 0,
        "pnl_gt_5x_num_7d": 1,
        "daily_profit_7d": [
          {
            "timestamp": 1726358400,
            "profit": 0
          },
          {
            "timestamp": 1726444800,
            "profit": 0
          },
          {
            "timestamp": 1726531200,
            "profit": 0
          },
          {
            "timestamp": 1726617600,
            "profit": 4297.22453381848
          },
          {
            "timestamp": 1726704000,
            "profit": 0
          },
          {
            "timestamp": 1726790400,
            "profit": 0
          },
          {
            "timestamp": 1726876800,
            "profit": 0
          }
        ],
        "txs": 1
      },
      {
        "wallet_address": "0x920ab50b7af8f591f3f4df82da7a35b1cf10b2c3",
        "address": "0x920ab50b7af8f591f3f4df82da7a35b1cf10b2c3",
        "realized_profit": 8481.32535378559,
        "buy": 1,
        "sell": 7,
        "last_active": 1726674287,
        "realized_profit_1d": 0,
        "realized_profit_7d": 4470.45437947576,
        "realized_profit_30d": 4688.107278799,
        "pnl_30d": 30.9012707003181,
        "pnl_7d": 444.878572916247,
        "pnl_1d": null,
        "txs_30d": 11,
        "buy_30d": 2,
        "sell_30d": 9,
        "balance": 0.100093494896047,
        "eth_balance": 0.100093494896047,
        "sol_balance": 0.100093494896047,
        "trx_balance": 0.100093494896047,
        "twitter_username": null,
        "avatar": null,
        "ens": null,
        "tag": null,
        "tag_rank": {
          "smart_degen": 7
        },
        "nickname": null,
        "tags": [
          "smart_degen"
        ],
        "maker_avatar_color": "#27B1CD",
        "twitter_name": null,
        "followers_count": 0,
        "is_blue_verified": false,
        "twitter_description": null,
        "name": null,
        "avg_hold_time": 0,
        "recent_buy_tokens": [],
        "winrate_7d": 1,
        "avg_cost_7d": 109.836287154231,
        "pnl_lt_minus_dot5_num_7d": 0,
        "pnl_minus_dot5_0x_num_7d": 0,
        "pnl_lt_2x_num_7d": 0,
        "pnl_2x_5x_num_7d": 0,
        "pnl_gt_5x_num_7d": 1,
        "daily_profit_7d": [
          {
            "timestamp": 1726358400,
            "profit": 0
          },
          {
            "timestamp": 1726444800,
            "profit": 0
          },
          {
            "timestamp": 1726531200,
            "profit": 0
          },
          {
            "timestamp": 1726617600,
            "profit": 2602.24240866245
          },
          {
            "timestamp": 1726704000,
            "profit": 0
          },
          {
            "timestamp": 1726790400,
            "profit": 0
          },
          {
            "timestamp": 1726876800,
            "profit": 0
          }
        ],
        "txs": 8
      },
      {
        "wallet_address": "0xa671806370d20ebeb142faabc579d7e685f9db0e",
        "address": "0xa671806370d20ebeb142faabc579d7e685f9db0e",
        "realized_profit": 20471.9983790949,
        "buy": 3,
        "sell": 3,
        "last_active": 1726926395,
        "realized_profit_1d": 7686.78992650696,
        "realized_profit_7d": 14562.8941791722,
        "realized_profit_30d": 18906.0978681313,
        "pnl_30d": 20.4038295670162,
        "pnl_7d": 134.04412573856,
        "pnl_1d": 519.024428212397,
        "txs_30d": 18,
        "buy_30d": 9,
        "sell_30d": 9,
        "balance": 1.05654722881284,
        "eth_balance": 1.05654722881284,
        "sol_balance": 1.05654722881284,
        "trx_balance": 1.05654722881284,
        "twitter_username": null,
        "avatar": null,
        "ens": null,
        "tag": "smart_degen",
        "tag_rank": {
          "smart_degen": 14
        },
        "nickname": null,
        "tags": [
          "smart_degen"
        ],
        "maker_avatar_color": "#ED78D3",
        "twitter_name": null,
        "followers_count": 0,
        "is_blue_verified": false,
        "twitter_description": null,
        "name": null,
        "avg_hold_time": 904761.333333333,
        "recent_buy_tokens": [
          {
            "address": "0xa0dfd7e3dc81339a4b77168c17ec87868edd8a0b",
            "name": "Trump Coins",
            "symbol": "TC",
            "decimals": 18,
            "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0xa0dfd7e3dc81339a4b77168c17ec87868edd8a0b.png"
          },
          {
            "address": "0xafeccc61a15dfdc7dc6f14034a56623d76bfb914",
            "name": "Clippy",
            "symbol": "CLIPPY",
            "decimals": 18,
            "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0xafeccc61a15dfdc7dc6f14034a56623d76bfb914.png"
          }
        ],
        "winrate_7d": 1,
        "avg_cost_7d": 177.595118580899,
        "pnl_lt_minus_dot5_num_7d": 1,
        "pnl_minus_dot5_0x_num_7d": 0,
        "pnl_lt_2x_num_7d": 1,
        "pnl_2x_5x_num_7d": 1,
        "pnl_gt_5x_num_7d": 1,
        "daily_profit_7d": [
          {
            "timestamp": 1726358400,
            "profit": 0
          },
          {
            "timestamp": 1726444800,
            "profit": 6850.19253433712
          },
          {
            "timestamp": 1726531200,
            "profit": 25.9117183280981
          },
          {
            "timestamp": 1726617600,
            "profit": 0
          },
          {
            "timestamp": 1726704000,
            "profit": 0
          },
          {
            "timestamp": 1726790400,
            "profit": 0
          },
          {
            "timestamp": 1726876800,
            "profit": 7686.78992650696
          }
        ],
        "txs": 6
      },
      {
        "wallet_address": "0xebf42fc8800ac0728ad315689126f03508b607bf",
        "address": "0xebf42fc8800ac0728ad315689126f03508b607bf",
        "realized_profit": 69055.4626547204,
        "buy": 0,
        "sell": 1,
        "last_active": 1726546631,
        "realized_profit_1d": 0,
        "realized_profit_7d": 202.990623371211,
        "realized_profit_30d": 1609.98490908572,
        "pnl_30d": 3.28705222855941,
        "pnl_7d": 103.288621652082,
        "pnl_1d": null,
        "txs_30d": 13,
        "buy_30d": 2,
        "sell_30d": 11,
        "balance": 0.445851252113334,
        "eth_balance": 0.445851252113334,
        "sol_balance": 0.445851252113334,
        "trx_balance": 0.445851252113334,
        "twitter_username": null,
        "avatar": null,
        "ens": null,
        "tag": "smart_degen",
        "tag_rank": {
          "smart_degen": 80
        },
        "nickname": null,
        "tags": [
          "smart_degen"
        ],
        "maker_avatar_color": "#F6B1B6",
        "twitter_name": null,
        "followers_count": 0,
        "is_blue_verified": false,
        "twitter_description": null,
        "name": null,
        "avg_hold_time": 1153895,
        "recent_buy_tokens": [],
        "winrate_7d": 1,
        "avg_cost_7d": 379.77786,
        "pnl_lt_minus_dot5_num_7d": 0,
        "pnl_minus_dot5_0x_num_7d": 0,
        "pnl_lt_2x_num_7d": 0,
        "pnl_2x_5x_num_7d": 0,
        "pnl_gt_5x_num_7d": 1,
        "daily_profit_7d": [
          {
            "timestamp": 1726358400,
            "profit": 0
          },
          {
            "timestamp": 1726444800,
            "profit": 0
          },
          {
            "timestamp": 1726531200,
            "profit": 202.990623371211
          },
          {
            "timestamp": 1726617600,
            "profit": 0
          },
          {
            "timestamp": 1726704000,
            "profit": 0
          },
          {
            "timestamp": 1726790400,
            "profit": 0
          },
          {
            "timestamp": 1726876800,
            "profit": 0
          }
        ],
        "txs": 1
      },
      {
        "wallet_address": "0x43ffb6ae1b53b27ff12ae17265bae71522fcfd43",
        "address": "0x43ffb6ae1b53b27ff12ae17265bae71522fcfd43",
        "realized_profit": 31193.44365836,
        "buy": 3,
        "sell": 6,
        "last_active": 1726925471,
        "realized_profit_1d": 7594.85711478227,
        "realized_profit_7d": 26457.4013469031,
        "realized_profit_30d": 29074.6781443277,
        "pnl_30d": 27.2603561537827,
        "pnl_7d": 95.8536912592164,
        "pnl_1d": 253.899182893969,
        "txs_30d": 19,
        "buy_30d": 8,
        "sell_30d": 11,
        "balance": 2.82007222763403,
        "eth_balance": 2.82007222763403,
        "sol_balance": 2.82007222763403,
        "trx_balance": 2.82007222763403,
        "twitter_username": null,
        "avatar": null,
        "ens": null,
        "tag": "smart_degen",
        "tag_rank": {
          "smart_degen": 9
        },
        "nickname": null,
        "tags": [
          "smart_degen"
        ],
        "maker_avatar_color": "#FBD9B3",
        "twitter_name": null,
        "followers_count": 0,
        "is_blue_verified": false,
        "twitter_description": null,
        "name": null,
        "avg_hold_time": 855464,
        "recent_buy_tokens": [
          {
            "address": "0xa0dfd7e3dc81339a4b77168c17ec87868edd8a0b",
            "name": "Trump Coins",
            "symbol": "TC",
            "decimals": 18,
            "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0xa0dfd7e3dc81339a4b77168c17ec87868edd8a0b.png"
          },
          {
            "address": "0xafeccc61a15dfdc7dc6f14034a56623d76bfb914",
            "name": "Clippy",
            "symbol": "CLIPPY",
            "decimals": 18,
            "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0xafeccc61a15dfdc7dc6f14034a56623d76bfb914.png"
          }
        ],
        "winrate_7d": 1,
        "avg_cost_7d": 651.569258427184,
        "pnl_lt_minus_dot5_num_7d": 1,
        "pnl_minus_dot5_0x_num_7d": 0,
        "pnl_lt_2x_num_7d": 2,
        "pnl_2x_5x_num_7d": 0,
        "pnl_gt_5x_num_7d": 1,
        "daily_profit_7d": [
          {
            "timestamp": 1726358400,
            "profit": 0
          },
          {
            "timestamp": 1726444800,
            "profit": 6868.44780504169
          },
          {
            "timestamp": 1726531200,
            "profit": 86.8067462251597
          },
          {
            "timestamp": 1726617600,
            "profit": 0
          },
          {
            "timestamp": 1726704000,
            "profit": 11879.1225684764
          },
          {
            "timestamp": 1726790400,
            "profit": 28.1671123775913
          },
          {
            "timestamp": 1726876800,
            "profit": 7594.85711478227
          }
        ],
        "txs": 9
      },
      {
        "wallet_address": "0x2d7d5a9ad74f16d310ab59dc676e9978a1ceda02",
        "address": "0x2d7d5a9ad74f16d310ab59dc676e9978a1ceda02",
        "realized_profit": 184682.642212374,
        "buy": 8,
        "sell": 3,
        "last_active": 1726890239,
        "realized_profit_1d": 0,
        "realized_profit_7d": 2883.99458013159,
        "realized_profit_30d": 3909.53821932417,
        "pnl_30d": 24.05086788681,
        "pnl_7d": 92.0469329439808,
        "pnl_1d": null,
        "txs_30d": 47,
        "buy_30d": 35,
        "sell_30d": 12,
        "balance": 1.17699270576202,
        "eth_balance": 1.17699270576202,
        "sol_balance": 1.17699270576202,
        "trx_balance": 1.17699270576202,
        "twitter_username": null,
        "avatar": null,
        "ens": null,
        "tag": null,
        "tag_rank": {
          "smart_degen": 10
        },
        "nickname": null,
        "tags": [
          "smart_degen"
        ],
        "maker_avatar_color": "#F9B428",
        "twitter_name": null,
        "followers_count": 0,
        "is_blue_verified": false,
        "twitter_description": null,
        "name": null,
        "avg_hold_time": 1098726.47058824,
        "recent_buy_tokens": [
          {
            "address": "0xe81c4a73bfddb1ddadf7d64734061be58d4c0b4c",
            "name": "Pesto The Baby King Penguin",
            "symbol": "PESTO",
            "decimals": 9,
            "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0xe81c4a73bfddb1ddadf7d64734061be58d4c0b4c.png?claimId=eTv9hxwy1fwKSEtmB9aeAH"
          },
          {
            "address": "0x28561b8a2360f463011c16b6cc0b0cbef8dbbcad",
            "name": "MOO DENG",
            "symbol": "MOODENG",
            "decimals": 9,
            "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0x28561b8a2360f463011c16b6cc0b0cbef8dbbcad.png"
          },
          {
            "address": "0xddfb931be05ac6fa2853d3e066c210273a8de6c2",
            "name": "AlpCoin",
            "symbol": "ALP",
            "decimals": 18,
            "logo": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0xddfb931be05ac6fa2853d3e066c210273a8de6c2.png?claimId=eTv9hxwy1fwKSEtmAcFKmH"
          }
        ],
        "winrate_7d": 1,
        "avg_cost_7d": 148.264253942857,
        "pnl_lt_minus_dot5_num_7d": 1,
        "pnl_minus_dot5_0x_num_7d": 4,
        "pnl_lt_2x_num_7d": 1,
        "pnl_2x_5x_num_7d": 0,
        "pnl_gt_5x_num_7d": 1,
        "daily_profit_7d": [
          {
            "timestamp": 1726358400,
            "profit": 0
          },
          {
            "timestamp": 1726444800,
            "profit": 1135.84148319508
          },
          {
            "timestamp": 1726531200,
            "profit": 986.193934817156
          },
          {
            "timestamp": 1726617600,
            "profit": 0
          },
          {
            "timestamp": 1726704000,
            "profit": 0
          },
          {
            "timestamp": 1726790400,
            "profit": 0
          },
          {
            "timestamp": 1726876800,
            "profit": 761.959162119357
          }
        ],
        "txs": 11
      },



Make sure the bot is fully functional and complete, this explanation document should give you all the information you need to complete the main.py file. Create a full main.py for me with everything