pyfolio

Portfolio and risk analytics in Python

  • 所有者: quantopian/pyfolio
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

pyfolio

pyfolio

Join the chat at https://gitter.im/quantopian/pyfolio
build status

pyfolio is a Python library for performance and risk analysis of
financial portfolios developed by
Quantopian Inc. It works well with the
Zipline open source backtesting library.
Quantopian also offers a fully managed service for professionals
that includes Zipline, Alphalens, Pyfolio, FactSet data, and more.

At the core of pyfolio is a so-called tear sheet that consists of
various individual plots that provide a comprehensive image of the
performance of a trading algorithm. Here's an example of a simple tear
sheet analyzing a strategy:

simple tear 0
simple tear 1

Also see slides of a talk about
pyfolio
.

Installation

To install pyfolio, run:

pip install pyfolio

Development

For development, you may want to use a virtual environment to avoid dependency conflicts between pyfolio and other Python projects you have. To get set up with a virtual env, run:

mkvirtualenv pyfolio

Next, clone this git repository and run python setup.py develop
and edit the library files directly.

Matplotlib on OSX

If you are on OSX and using a non-framework build of Python, you may need to set your backend:

echo "backend: TkAgg" > ~/.matplotlib/matplotlibrc

Usage

A good way to get started is to run the pyfolio examples in
a Jupyter notebook. To do this, you first want to
start a Jupyter notebook server:

jupyter notebook

From the notebook list page, navigate to the pyfolio examples directory
and open a notebook. Execute the code in a notebook cell by clicking on it
and hitting Shift+Enter.

Questions?

If you find a bug, feel free to open an issue in this repository.

You can also join our mailing list or
our Gitter channel.

Support

Please open an issue for support.

Contributing

If you'd like to contribute, a great place to look is the issues marked with help-wanted.

For a list of core developers and outside collaborators, see the GitHub contributors list.

主要指标

概览
名称与所有者quantopian/pyfolio
主编程语言Jupyter Notebook
编程语言Python (语言数: 4)
平台
许可证Apache License 2.0
所有者活动
创建于2015-06-01 15:31:39
推送于2023-12-23 06:14:58
最后一次提交2020-02-28 18:30:19
发布数14
最新版本名称0.9.2 (发布于 )
第一版名称v0.1.beta (发布于 )
用户参与
星数6k
关注者数304
派生数1.8k
提交数1.2k
已启用问题?
问题数421
打开的问题数153
拉请求数215
打开的拉请求数12
关闭的拉请求数70
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?