Skip to content

Python Jupyter notebook for sharpe ratio based cryptocurrency portfolio optimization using Monte-Carlo method

Notifications You must be signed in to change notification settings

CTristan/cryptocurrency_portfolio_sharpe_ratio_optimization

 
 

Repository files navigation

Cryptocurrency portfolio Sharpe ratio optimization

This repository contains a Jupyter notebook with an investment strategy for cryptocurrency portfolios, although it could be generalized to other securities.

The structure of the program is as follows:

  • use api to read-in crypto price data
  • define functions to generate mean daily returns and a covariance matrix for our coins
  • define function to randomly weight proportions of each coin in a portfolio and calculate the portfolio's risk-adjusted return (Sharpe ratio) and variance over a specified period of time
  • use Monte-Carlo method to find weighting of coins to maximize Sharpe ratio and minimize volatility
  • plot all portfolios with stars on portfolios with highest Sharpe ratio and lowest volatility

About

Python Jupyter notebook for sharpe ratio based cryptocurrency portfolio optimization using Monte-Carlo method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%