Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 1.85 KB

File metadata and controls

14 lines (12 loc) · 1.85 KB

Create-a-crypto-currency-index-based-on-market-capitalization-with-Python

Here we want to create a crypto currency index with the 5 biggest markets capitalizations of crypto currencies. On November 2021, the 5 biggest markets capitalizations are Bitcoin, Ethereum, Binance coin, Tether and Solana.

We grab our data from CoinMarketCap.

Market Value-Weighted Index : image

where p is the price of the crypto-currency and n the number of crypto-currency issued. To upscale the index, we will divide it by image.

image MCI V daily return : image

By creating a crypto index we can now assess the general performance of the crypto-currencies markets. We will use it to apply the Capital Asset Pricing Model (CAPM) introduced by Jack Treynor (1961, 1962), William F. Sharpe (1964), John Lintner (1965) and Jan Mossin (1966), building on the earlier work of Harry Markowitz on diversification and modern portfolio theory.

CAPM :

image

Where E(Rm) will be the expected return of the crypto market embodie by MCI 5 and image is the sensitivity of the expected excess asset returns to the expected excess market returns and image