Initial Contract Amount:
The initial contract amount is set to 1000.
Index Calculation Formula:
I n d e x t = ā i = 1 m t P i ā N i t D i v i s o r t ā I n d e x i n i t i a l Ā Ā ( t ā„ 1 ) Index_{t}=\frac{\sum_{i=1}^{m^t}P_{i}*N_{i}^t}{Divisor_{t}}*Index_{initial}\ \ (t\ge1) I n d e x t ā = D i v i so r t ā ā i = 1 m t ā P i ā ā N i t ā ā ā I n d e x ini t ia l ā Ā Ā ( t ā„ 1 ) D i v i s o r t = D i v i s o r t ā 1 ā ā i = 1 m P i ā N i t ā k = 1 g P k ā N k t ā 1 Divisor_{t}=Divisor_{t-1}*\frac{\sum_{i=1}^{m}P_{i}*N_{i}^t}{\sum_{k=1}^{g}P_{k}*N_{k}^{t-1}} D i v i so r t ā = D i v i so r t ā 1 ā ā ā k = 1 g ā P k ā ā N k t ā 1 ā ā i = 1 m ā P i ā ā N i t ā ā where:
I n d e x t Index_{t} I n d e x t ā : Index of the t t h t^{th} t t h period
P i P_{i} P i ā : The current price of the i t h i^{th} i t h constituent
N i t N_{i}^t N i t ā : At time t t t , the amount of the i t h i^{th} i t h constituent in the index
I n d e x i n i t i a l Index_{initial} I n d e x ini t ia l ā : Initial contract amount of the index, I n d e x i n i t i a l Index_{initial} I n d e x ini t ia l ā = 10000
D i v i s o r t : Divisor_{t}: D i v i so r t ā : A stabilizer that ensures a stable and continuous change of the index and eliminates the impact of index rebalancing. D i v i s o r 1 = I n d e x i n i t i a l Divisor_{1}=Index_{initial} D i v i so r 1 ā = I n d e x ini t ia l ā
Index Calculation Process:
Set the initial index contract amount to 1000;
Determine the index constituents;
Determine the amount of each constituent such that: ā i = 1 m P i ā N i = I n d e x i n i t i a l \sum_{i=1}^mP_{i}*N_{i}=Index_{initial} ā i = 1 m ā P i ā ā N i ā = I n d e x ini t ia l ā
Since the price of each token P i P_{i} P i ā is already known, we need to determine the weight of each token W i W_{i} W i ā to calculate N i N_{i} N i ā : I n d e x i n i t i a l ā W i = P i ā N i Index_{initial}*W_{i}=P{i}*N{i} I n d e x ini t ia l ā ā W i ā = P i ā N i . There are various methods to determine W i W_{i} W i ā
Equal weights: 1 m \frac{1}{m} m 1 ā
Market cap weighted: w i = M a r k e t V a l u e i ā M a r k e t V a l u e w_{i}=\frac{MarketValue_{i}}{\sum MarketValue} w i ā = ā M a r k e t Va l u e M a r k e t Va l u e i ā ā
A Market Cap Weighted Example
Initial Contract Amount: 1000.
Constituent
Market Cap
Sqrt Market Cap
Current Price
w i = M a r k e t V a l u e i ā M a r k e t V a l u e w_{i}=\frac{\sqrt{MarketValue_{i}} }{\sum MarketValue} w i ā = ā M a r k e t Va l u e M a r k e t Va l u e i ā ā ā
BTC :
w 1 = 940542 940542 + 667162 + 295874.2 + 216731.2 + 112353 = 940542 2232662.4 = 0.4213 w_{1}=\frac{940542}{940542+667162+295874.2+216731.2+112353}=\frac{940542}{2232662.4}=0.4213 w 1 ā = 940542 + 667162 + 295874.2 + 216731.2 + 112353 940542 ā = 2232662.4 940542 ā = 0.4213
N 1 1 = 1000 ā w 1 p 1 = 1000 ā 0.4213 46633.22 = 0.00903 N_1^1=\frac{1000*w_1}{p_1}=\frac{1000*0.4213}{46633.22}=0.00903 N 1 1 ā = p 1 ā 1000 ā w 1 ā ā = 46633.22 1000 ā 0.4213 ā = 0.00903
ETH :
w 2 = 667162 2232662.4 = 0.2988 w_{2}=\frac{667162}{2232662.4}=0.2988 w 2 ā = 2232662.4 667162 ā = 0.2988
N 2 1 = 1000 ā w 2 p 2 = 1000 ā 0.2988 3805.21 = 0.07852 N_2^1=\frac{1000*w_2}{p_2}=\frac{1000*0.2988}{3805.21}=0.07852 N 2 1 ā = p 2 ā 1000 ā w 2 ā ā = 3805.21 1000 ā 0.2988 ā = 0.07852
BNB :
w 3 = 667162 2232662.4 = 0.1325 w_{3}=\frac{667162}{2232662.4}=0.1325 w 3 ā = 2232662.4 667162 ā = 0.1325
N 3 1 = 1000 ā w 3 p 3 = 1000 ā 0.1325 535.24 = 0.24755 N_3^1=\frac{1000*w_3}{p_3}=\frac{1000*0.1325}{535.24}=0.24755 N 3 1 ā = p 3 ā 1000 ā w 3 ā ā = 535.24 1000 ā 0.1325 ā = 0.24755
SOL:
w 4 = 216731.2 2232662.4 = 0.0971 w_{4}=\frac{216731.2}{2232662.4}=0.0971 w 4 ā = 2232662.4 216731.2 ā = 0.0971
N 4 1 = 1000 ā w 4 p 4 = 1000 ā 0.0971 155.67 = 0.62375 N_4^1=\frac{1000*w_4}{p_4}=\frac{1000*0.0971}{155.67}=0.62375 N 4 1 ā = p 4 ā 1000 ā w 4 ā ā = 155.67 1000 ā 0.0971 ā = 0.62375
MATIC:
w 5 = 112353 2232662.4 = 0.0503 w_{5}=\frac{112353}{2232662.4}=0.0503 w 5 ā = 2232662.4 112353 ā = 0.0503
N 5 1 = 1000 ā w 5 p 5 = 1000 ā 0.0503 1.81 = 27.79006 N_5^1=\frac{1000*w_5}{p_5}=\frac{1000*0.0503}{1.81}=27.79006 N 5 1 ā = p 5 ā 1000 ā w 5 ā ā = 1.81 1000 ā 0.0503 ā = 27.79006
Constituent
Market Cap
Sqrt Market Cap
Current Price
Weight
Quantity
Index Calculation: I n d e x 1 = 0.00903 ā B T C + 0.07852 ā E T H + 0.24755 ā B N B + 0.62376 ā S O L + 27.7901 ā M A T I C Index_{1}=0.00903*BTC+0.07852*ETH+0.24755*BNB+0.62376*SOL+27.7901*MATIC I n d e x 1 ā = 0.00903 ā BTC + 0.07852 ā ET H + 0.24755 ā BNB + 0.62376 ā SO L + 27.7901 ā M A T I C