Skip to content

Instantly share code, notes, and snippets.

@voith
Created January 24, 2022 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voith/3c4a05bdde7a2bc2db93239b5bdf9b85 to your computer and use it in GitHub Desktop.
Save voith/3c4a05bdde7a2bc2db93239b5bdf9b85 to your computer and use it in GitHub Desktop.
Crypto MarketCap stats on of 24 Jan 2022
# below is the list of top 100 crypto by marketcap
# The data was fetched from coinmarketcap using the following xpath: `//td[7]`
top_100_crypto_marketcap = [
658219848892, # BTC
280749726821, # ETH
78325902003, # USDT
58926965670, # and so on...
47738008009,
34138378623,
28006007353,
26867113121,
25173646701,
17639940795,
16666205228,
14482684303,
14012718422,
11273889587,
11128174465,
10488099918,
9628123175,
9390843221,
8981617986,
8930790665,
7281474659,
6949777604,
6567894423,
6250333121,
5713876072,
5536753162,
5376507120,
5126772013,
4683728815,
4563781651,
3828811345,
3640238558,
3635393073,
3498537653,
3344378457,
3113747743,
3045922391,
3040235835,
2948520313,
2743106064,
2650329626,
2592612934,
2508293985,
2466663176,
2403214591,
2372464226,
2110574390,
2103805888,
2086311535,
2085568771,
1950378675,
1936068564,
1769883273,
1751831761,
1730064880,
1648090476,
1488503376,
1459955849,
1432912558,
1389587485,
1314008746,
1237313349,
1217878586,
1209322550,
1207705595,
1205332455,
1203572384,
1189178661,
1184189505,
1180932010,
1180697564,
1172886969,
1077286135,
1037624417,
1024059516,
1012623560,
992322132,
984139623,
973317901,
945535106,
884411830,
848206415,
837123953,
824202951,
821529014,
771350393,
764585588,
764383243,
750453234,
733793937,
719331546,
667839777,
665739864,
649029102,
642040398,
618942536,
553895885,
548257909,
533281171,
532978236,
]
# The total market cap in USD
TOTAL_MARKETCAP = 1750000000000
BTC_SHARE_PERCENTAGE = (top_100_crypto_marketcap[0] * 100) / TOTAL_MARKETCAP
# BTC % share is 37.61 %
print(f"The % share of BTC of the Total Market Cap is {BTC_SHARE_PERCENTAGE} %")
ETH_SHARE_PERCENTAGE = (top_100_crypto_marketcap[1] * 100) / TOTAL_MARKETCAP
# ETH % share is 16.04 %
print(f"The % share of ETH of the Total Market Cap is {ETH_SHARE_PERCENTAGE} %")
TOP10_SHARE_PERCENTAGE = (sum(top_100_crypto_marketcap[:10]) * 100) / TOTAL_MARKETCAP
# TOP10 Crypto share is 71.75 %
print(f"The % share of Top 10 crypto is {TOP10_SHARE_PERCENTAGE} %")
TOP20_SHARE_PERCENTAGE = (sum(top_100_crypto_marketcap[:20]) * 100) / TOTAL_MARKETCAP
# TOP20 Crypto share is 78.32 %
print(f"The % share of Top 20 crypto is {TOP20_SHARE_PERCENTAGE} %")
TOP50_SHARE_PERCENTAGE = (sum(top_100_crypto_marketcap[:50]) * 100) / TOTAL_MARKETCAP
# TOP50 Crypto share is 84.86 %
print(f"The % share of Top 50 crypto is {TOP50_SHARE_PERCENTAGE} %")
TOP100_SHARE_PERCENTAGE = (sum(top_100_crypto_marketcap) * 100) / TOTAL_MARKETCAP
# TOP100 Crypto share is 87.90 %
print(f"The % share of Top 100 crypto is {TOP100_SHARE_PERCENTAGE} %")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment