Git Product home page Git Product logo

php_mpt's Introduction

The Modern Portfolio Theory

This is a PHP implementation of the Modern Portfolio Theory. I made this as part of a Seminar essay and presentation. This Project is based on Laravel 5.8 and PHP 7.1 and the medium articles about the MPT by Bernard Brenyah. Really worth a read!

All the commands are suited for use under Linux, specifically tested under Ubuntu 19.04.

Installation

In root directory:

composer install

The .env.example to .env and app key generation should be done automatically. Edit the .env File to your needs. Dont forget to input an APIKEY! You can get your free APIKEY at Alpha Vantage

Usage

Start the debugserver with the command php artisan serve in the root directory of the Project.

In a browser, open:

127.0.0.1:8000/?stocks=XXX,XXX,XXX,XXX

where XXX is a valid stock symbol. you can use up to 5 stocks. Optionally you can use timeseries to change the requested data between monthly adjusted (monthly) and daily adjusted (daily) stock prices. This defaults to daily.

Used Libarys:

TODO

  • I have to check the monthly timeseries again, they are apparently broken
  • A good validator would be great for the data to be in the same timespan or else the whole program will break down
  • Lots of stuff I probably forgot and will add here when I remember it.

Setup to contribute

Set up grumPHP to sniff commits.

 php ./vendor/bin/grumphp git:init --config=./grumphp.yml

To autofix possible Codestyle errors, use:

composer autofix-phpcs

php_mpt's People

Contributors

thomasschmidtgf avatar

Stargazers

WebClinic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.