An open API service indexing awesome lists of open source software.

https://github.com/manoelcampos/morpheus-portfolio-generator

Sample project for generation and analysis of financial portfolios applying the Modern Portfolio Theory (MPT)
https://github.com/manoelcampos/morpheus-portfolio-generator

java java8 mean-variance-analysis modern-potfolio-theory mpt portfolio yahoo-finance zavtech-morpheus-lib

Last synced: 6 months ago
JSON representation

Sample project for generation and analysis of financial portfolios applying the Modern Portfolio Theory (MPT)

Awesome Lists containing this project

README

          

= Portfolio Analysis in Java image:https://github.com/manoelcampos/portfolio-analysis-java/workflows/maven/badge.svg[GitHub Workflow Status]

A Java 15 project for generation and analysis of financial portfolios applying the
Modern Portfolio Theory (MPT).

The project uses the https://github.com/zavtech[ZavTech Morpheus Library] to
generate random portfolios for groups os assets (stocks) extracted
from the http://finance.yahoo.com"[Yahoo Finance WebSite] using
the http://www.zavtech.com/morpheus/docs/providers/yahoo/[morpheus-yahoo unofficial API].

The image below shows an example of the graph generated for groups of
N random generated portfolios, each group containing a different number
of assets.

image:portfolios-analysis-by-assets-group.png[]

== Credits

This example was based on the code available at the
http://www.zavtech.com/morpheus/docs/examples/mpt/#multiple-assets[documentation page]
for the https://github.com/zavtech[ZavTech Morpheus Library]
by https://github.com/Zavster[Xavier Witdouck].
It uses a custom version of the https://github.com/manoelcampos/morpheus-yahoo[Morpheus Yahoo library available here].

The example extracted from the library documentation
(aimed to be direct and succinct) was totally refactored and documented, extracting
several methods to make it easier to (i) reuse and (ii) understand the code
and the data structures.