[go: up one dir, main page]

Skip to content

santoshlite/EigenLedger

Repository files navigation

By Investors, For Investors.











Binder



Want to read this in Chinese? Click here

Empyrial is a Python-based open-source quantitative investment library dedicated to financial institutions and retail investors, officially released in Mars 2021. Already used by thousands of people working in the finance industry, Empyrial aims to become an all-in-one platform for portfolio management, analysis, and optimization.

Empyrial empowers portfolio management by bringing different financial approaches such as risk analysis, quantitative analysis, fundamental analysis, factor analysis and prediction making.

With Empyrial, you can easily analyze security or a portfolio with these different approaches and get the best insights from it.



Installation

To install Empyrial, you should do:

pip install empyrial

Features

Feature 📰 Status
Empyrial (backtesting + performance analysis) Released on May 30, 2021
Oracle (prediction lens using several ML models) 👽 Beta on Jun 1, 2021
Fundamental lens 👽 Beta on Jun 6, 2021
Risk factors lens 😸 In development...
Alpha lens 😸 In development...
Sentiment lens 😸 In development...

Here are the functions available with Empyrial:

Usage

from empyrial import empyrial, Engine

portfolio = Engine(    
                  start_date= "2020-06-09", 
                  portfolio= ["BABA", "RELIANCE.NS", "KO", "^DJI","^IXIC"], 
                  weights = [0.2, 0.2, 0.2, 0.2, 0.2], 
                  benchmark = ["SPY"] 
)

empyrial(portfolio)

Output:

report


return


creturn


heatmap


drawdonw


top


rolling

Download the tearsheet

The tearsheet will downloaded as a PDF or a HTML file.

On Google Colab

Create another cell in your program and run that:

!wget -nc https://raw.githubusercontent.com/brpy/colab-pdf/master/colab_pdf.py
from colab_pdf import colab_pdf
colab_pdf('name_of_the_actual_file.ipynb')

On a Jupyter Notebook

Create another cell in your program and run:

pip install nbconvert

Go to Files > Download as > HTML or PDF via LaTeX

(For Visual Studio Code: Click on the "export as" icon in the upper right corner)

If you get an error downloading it as a PDF, download it as a HTML file.

Now open that your_notebook_name.html file (click on it). It will be opened in a new tab of your browser.

Now go to print option (right-click on the page). From here you can save this file in pdf file format.

Contribution and Issues

  • Create Issue - For the larger changes (such as new features, large refactoring, etc.) it is best to first open an issue to discuss, and smaller improvements (such as document improvements, bugfixes, etc.) can be sent directly to PR

  • Fork Empyrial - Click the Fork button in the upper right corner

  • Clone your own fork: git clone https://github.com/ssantoshp/Empyrial.git

  • Empyrial uses Github to host its source code, if you wish to contribute code please use the PR (Pull Request) process of github: pull requests. It'll waiting for review, checked/modified and be merged!

Contributors and Acknowledgments

Thanks to the following people/organizations who have contributed to this project:

Contact

You are welcome to contact us by email at santoshpassoubady@gmail.com or in Empyrial's discussion space

License

MIT