A web3 index fund
- poetry install
- yarn
python main.py --start-date=2021-03-02 --fear-greed-file=./dataset/fear_and_greed.json --stablecoin-allocation=0.5
- Start with the Top 10 Tokens (Excluding Stablecoins): We first identify the top 10 tokens in the Web3 ecosystem based on market capitalization. Stablecoins are excluded to ensure we're only capturing assets with real price exposure.
- Calculate Total Market Cap: We sum the market capitalizations of these 10 tokens to get the total market cap of the index set.
- Determine Each Token’s Weight: For each token, we divide its individual market cap by the total market cap.
This gives us the proportional weight of each token in the index, reflecting its relative size in the ecosystem.
- btc: 73% = (btc+wbtc) / total = (2112049416206+13704675396)/2892707663012
- eth: 11.6% = (eth+steth+wsteth) / total = (304662365084+22792158411+10509168437)/2892707663012
- xrp: 4.7% = (137065385158)/2892707663012
- bnb: 3.3% = (95102161955)/2892707663012
- sol: 3% = (87426947468)/2892707663012
- doge: 1.2% = (33657299707)/2892707663012
- ada: 1.1% = (26977071650)/2892707663012
- trx: 0.9% = (25721576964)/2892707663012
- sui: 0.4% = (12777337555)/2892707663012
- link: 0.4% = (10262099021)/2892707663012